From 947d0ed1a628353f42ac4c2aa817a4579cdf126d Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期日, 05 十一月 2023 11:29:04 +0800
Subject: [PATCH] Merge branch 'positec' into dms

---
 src/views/billprint/index.jsx |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/src/views/billprint/index.jsx b/src/views/billprint/index.jsx
index f7d3a35..4ef6821 100644
--- a/src/views/billprint/index.jsx
+++ b/src/views/billprint/index.jsx
@@ -184,6 +184,7 @@
           if (res.status) {
             window.GLOB.style = res.CSS
             document.title = res.titleName
+            sessionStorage.setItem('appname', res.appname || '')
         
             if (window.GLOB.style && styles[window.GLOB.style]) {
               document.body.className = styles[window.GLOB.style] + ' ' + (res.split_line_show === 'false' ? 'hidden-split-line' : '')
@@ -553,6 +554,16 @@
           auto: config.printPage === 'auto',
           config
         }, () => {
+          if (config.normalcss) {
+            let node = document.getElementById(config.uuid)
+            node && node.remove()
+      
+            let ele = document.createElement('style')
+            ele.id = config.uuid
+            ele.innerHTML = config.normalcss
+            document.getElementsByTagName('head')[0].appendChild(ele)
+          }
+          
           if (params.length === 0 && initInters.length === 0) {
             this.setState({loadingview: false, pages: [config.components]})
           } else if (initInters.length > 0) {

--
Gitblit v1.8.0