From 783ab4e467c95e26f7f031151507bd7ad8333a63 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 08 九月 2023 17:34:47 +0800
Subject: [PATCH] 2023-09-08

---
 src/index.js |   18 +++++++++++++-----
 1 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/src/index.js b/src/index.js
index be1891c..2e62f85 100644
--- a/src/index.js
+++ b/src/index.js
@@ -110,10 +110,6 @@
       GLOB.mainSystemApi = ''
     }
 
-    if (/#\/hs$/.test(window.location.href)) { // hs涓嬩笉鎵撳嵃鑴氭湰
-      GLOB.debugger = false
-    }
-
     if (GLOB.sysType !== 'cloud') {
       if (config.appkey === options.cakey) {
         document.getElementById('root').innerHTML = '<div style="text-align: center; font-size: 30px; margin-top: 40vh;">涓嶅彲浣跨敤浜戠appkey锛岃鑱旂郴绠$悊鍛橈紒</div>'
@@ -142,6 +138,18 @@
         }
       
         GLOB.mainSystemApi = systemApi
+      }
+    }
+
+    if (/#\/hs$/.test(window.location.href)) { // hs涓嬩笉鎵撳嵃鑴氭湰
+      GLOB.debugger = false
+
+      if (GLOB.mainSystemApi) {
+        GLOB.localSystemApi = GLOB.mainSystemApi
+        GLOB.mainSystemApi = ''
+      }
+      if (GLOB.cloudServiceApi) {
+        GLOB.mainSystemApi = GLOB.cloudServiceApi
       }
     }
 
@@ -233,7 +241,6 @@
     let lang = localStorage.getItem(_href + 'lang') || (config.defaultLang !== 'en-US' ? 'zh-CN' : 'en-US')
     sessionStorage.setItem('lang', lang)
 
-    GLOB.mkThdMenus = [] // 涓夌骇鑿滃崟
     GLOB.mkActions = {}  // 鎸夐挳鏉冮檺闆�
 
     Object.defineProperty(GLOB, 'appId', {
@@ -301,6 +308,7 @@
     window.GLOB.CacheData = new Map()    // 瀛樺偍閫変腑鏁版嵁
     window.GLOB.SearchBox = new Map()    // 瀛樺偍鎼滅储鏉′欢
     window.GLOB.SyncData = new Map()     // 瀛樺偍鍚屾鏌ヨ鏁版嵁
+    window.GLOB.mkThdMenus = new Map()   // 涓夌骇鑿滃崟
 
     render(Route)
   })

--
Gitblit v1.8.0