From c268999fa9a5894289e436165730525c18be93aa Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 07 八月 2023 20:42:09 +0800 Subject: [PATCH] 2023-08-07 --- src/index.js | 19 ++++--------------- 1 files changed, 4 insertions(+), 15 deletions(-) diff --git a/src/index.js b/src/index.js index 79ba81e..866506c 100644 --- a/src/index.js +++ b/src/index.js @@ -10,19 +10,6 @@ import '@/assets/css/action.scss' import '@/assets/css/viewstyle.scss' -if (window.location.href.indexOf('#/design') > -1) { // 缂栬緫椤甸潰鍒锋柊鏃讹紝璺宠浆鑷充富椤� - window.location.replace(window.location.href.replace(/design/ig, 'main')) -} - -options.sysType = window.atob(options.sysType.replace('$mk', '')) -options.caId = window.atob(options.caId.replace('$mk', '')) -options.cakey = window.atob(options.cakey.replace('$mk', '')) -options.cdomain = window.atob(options.cdomain.replace('$mk', '')) - -if (options.cdomain && options.sysType !== 'cloud') { - options.cloudServiceApi = options.cdomain + '/webapi/dostars' -} - if (!localStorage.getItem('SessionUid')) { localStorage.setItem('SessionUid', (() => { let uuid = [] @@ -43,8 +30,6 @@ ) } -sessionStorage.removeItem('isEditState') - fetch('../options.json') .then(response => response.json()) .catch(() => { @@ -60,6 +45,10 @@ } } + if (options.cdomain && options.sysType !== 'cloud') { + options.cloudServiceApi = options.cdomain + '/webapi/dostars' + } + let GLOB = {} GLOB.appId = config.appId || '' GLOB.lineColor = config.lineColor || '' -- Gitblit v1.8.0