From 71a0e75ecb56ae643fe1e86188d45f93f48388c9 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 28 八月 2020 14:07:41 +0800
Subject: [PATCH] 2020-08-28

---
 src/index.js |   14 ++++++--------
 1 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/src/index.js b/src/index.js
index ad4f31a..3b4546d 100644
--- a/src/index.js
+++ b/src/index.js
@@ -114,7 +114,9 @@
       }
     }
 
-    let _systemMsg = localStorage.getItem(window.location.href.split('#')[0] + 'system')
+    let _href = window.location.href.split('#')[0]
+
+    let _systemMsg = localStorage.getItem(_href + 'system')
 
     if (_systemMsg) {
       try {
@@ -156,7 +158,7 @@
 
     if (process.env.NODE_ENV === 'production') { // 鐢ㄤ簬鏍¢獙鏄惁瀛樺湪寮�鍙戞潈闄�
       let _service = window.location.href.replace(/\/index.html(.*)|\/#(.*)/ig, '').replace(new RegExp(document.location.origin + '/?', 'ig'), '')
-      GLOB.linkurl = window.location.href.split('#')[0]
+      GLOB.linkurl = _href
       if (!/index.html/ig.test(GLOB.linkurl)) {
         GLOB.linkurl = GLOB.linkurl + 'index.html'
       }
@@ -167,12 +169,8 @@
       GLOB.service = 'mkwms/'
     }
 
-    const option = {
-      white: 'mk-white'
-    }
-
-    if (GLOB.style && option[GLOB.style]) {
-      document.getElementById('root').className = option[GLOB.style]
+    if (GLOB.style && options.styles[GLOB.style]) {
+      document.getElementById('root').className = options.styles[GLOB.style]
     }
 
     Object.defineProperty(GLOB, 'appId', {

--
Gitblit v1.8.0