king
2025-05-23 24842b40de5cd60700bf69dfd38a0332f5431e36
src/index.js
@@ -118,20 +118,20 @@
      GLOB.systemType = 'production'
    } else if (GLOB.sysType === 'local') {
      GLOB.probation = true
      GLOB.debugger = true
      // GLOB.debugger = true
      GLOB.systemType = ''
      GLOB.upStatus = config.updateStatus + '' !== 'false'
      GLOB.mainSystemApi = 'https://cloud.positecgroup.com/webapi/dostars'
      if (config.style_appkey) {
        GLOB.style_appkey = config.style_appkey
      }
      // GLOB.mainSystemApi = 'https://cloud.positecgroup.com/webapi/dostars'
      GLOB.mainSystemApi = 'https://sso.mk9h.cn/cloud/webapi/dostars'
      if (!/^https/.test(window.location.protocol)) { // https转换
        GLOB.mainSystemApi = 'http://sso.mk9h.cn/cloud/webapi/dostars'
      }
      // GLOB.mainSystemApi = 'https://sso.mk9h.cn/cloud/webapi/dostars'
      // if (!/^https/.test(window.location.protocol)) { // https转换
      //   GLOB.mainSystemApi = 'http://sso.mk9h.cn/cloud/webapi/dostars'
      // }
      if (GLOB.watermark) {
        GLOB.dataFormat = true
@@ -221,7 +221,7 @@
      GLOB.appkey = config.mainkey
    }
    let lang = localStorage.getItem(window.location.href.split('#')[0] + 'lang') || GLOB.defLang || 'zh-CN'
    let lang = sessionStorage.getItem('lang') || localStorage.getItem(window.location.href.split('#')[0] + 'lang') || GLOB.defLang || 'zh-CN'
    sessionStorage.setItem('lang', lang)
    GLOB.sysSign = GLOB.service + 'admin/' + lang + '/'
@@ -280,7 +280,7 @@
    document.body.className = className
    if (/^https/.test(window.location.protocol)) { // https转换
    if (/^https/.test(window.location.protocol) || (process.env.NODE_ENV !== 'production' && /^https/.test(config.host))) { // https转换
      let meta = document.createElement('meta')
      meta.content = 'upgrade-insecure-requests'
      meta.httpEquiv = 'Content-Security-Policy'