king
2020-08-28 71a0e75ecb56ae643fe1e86188d45f93f48388c9
src/index.js
@@ -114,7 +114,9 @@
      }
    }
    let _systemMsg = localStorage.getItem(window.location.href.split('#')[0] + 'system')
    let _href = window.location.href.split('#')[0]
    let _systemMsg = localStorage.getItem(_href + 'system')
    if (_systemMsg) {
      try {
@@ -156,7 +158,7 @@
    if (process.env.NODE_ENV === 'production') { // 用于校验是否存在开发权限
      let _service = window.location.href.replace(/\/index.html(.*)|\/#(.*)/ig, '').replace(new RegExp(document.location.origin + '/?', 'ig'), '')
      GLOB.linkurl = window.location.href.split('#')[0]
      GLOB.linkurl = _href
      if (!/index.html/ig.test(GLOB.linkurl)) {
        GLOB.linkurl = GLOB.linkurl + 'index.html'
      }
@@ -167,12 +169,8 @@
      GLOB.service = 'mkwms/'
    }
    const option = {
      white: 'mk-white'
    }
    if (GLOB.style && option[GLOB.style]) {
      document.getElementById('root').className = option[GLOB.style]
    if (GLOB.style && options.styles[GLOB.style]) {
      document.getElementById('root').className = options.styles[GLOB.style]
    }
    Object.defineProperty(GLOB, 'appId', {