From c46e208fc65742bf02d43235a28143abbf3eb7ea Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 25 九月 2024 22:23:17 +0800 Subject: [PATCH] 2024-09-25 --- src/index.js | 19 ++++++++++++------- 1 files changed, 12 insertions(+), 7 deletions(-) diff --git a/src/index.js b/src/index.js index 36ff7ed..89c1f87 100644 --- a/src/index.js +++ b/src/index.js @@ -168,6 +168,11 @@ if (GLOB.cloudServiceApi) { GLOB.mainSystemApi = GLOB.cloudServiceApi } + + if (config.systemRun === 'backend') { + config.systemRun = '' // hs 涓嶄娇鐢ㄥ悗绔浛鎹� + GLOB.backend = true + } } if (process.env.NODE_ENV === 'production') { // 鐢ㄤ簬鏍¢獙鏄惁瀛樺湪寮�鍙戞潈闄� @@ -183,14 +188,14 @@ GLOB.baseurl = GLOB.location + '/' + GLOB.service GLOB.linkurl = GLOB.baseurl + 'index.html' GLOB.dataFormat = false - - let mark = sessionStorage.getItem('system_mark') - let _mark = `sys_${GLOB.service.replace('/', '') || 'service'}` - if (mark && mark !== _mark) { - sessionStorage.clear() - } - sessionStorage.setItem('system_mark', _mark) } + + let mark = sessionStorage.getItem('system_mark') + let _mark = `sys_${GLOB.service.replace('/', '') || 'service'}` + if (mark && mark !== _mark) { + sessionStorage.clear() + } + sessionStorage.setItem('system_mark', _mark) if (config.mainkey && GLOB.sysType !== 'cloud' && config.mainkey !== options.cakey) { GLOB.localkey = GLOB.appkey -- Gitblit v1.8.0