| | |
| | | } |
| | | } |
| | | |
| | | 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 { |
| | |
| | | |
| | | 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' |
| | | } |
| | |
| | | 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', { |