king
2023-08-04 051981a2211bb86f88a6d68f2e29816f8caeac20
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 || ''