| | |
| | | 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 |
| | |
| | | GLOB.host = window.location.host + (_service ? '_' + _service : '') |
| | | GLOB.baseurl = document.location.origin + '/' + GLOB.service |
| | | GLOB.linkurl = GLOB.baseurl + 'index.html' |
| | | GLOB.location = document.location.origin |
| | | } else { |
| | | GLOB.location = config.host |
| | | GLOB.service = config.service |
| | |
| | | GLOB.showline = _systemMsg.showline || '' |
| | | GLOB.navBar = _systemMsg.navBar || 'shutter' |
| | | GLOB.appVersion = _systemMsg.app_version || '' |
| | | GLOB.loginOtop = _systemMsg.loginOtop || '' |
| | | GLOB.loginOleft = _systemMsg.loginOleft || '' |
| | | sessionStorage.setItem('appname', _systemMsg.appname || '') |
| | | |
| | | let levels = [30, 10, 20, 40, 50, 60, 70, 80, 90, 100] |
| | |
| | | |
| | | 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' |
| | |
| | | value: GLOB.debugger |
| | | }) |
| | | } else if (GLOB.sysType === 'cloud') { |
| | | Object.defineProperty(GLOB, 'debugger', { |
| | | writable: false, |
| | | value: GLOB.debugger |
| | | }) |
| | | |
| | | GLOB.breakpoint = false |
| | | if (sessionStorage.getItem('cloudRun') === 'debug') { |
| | | GLOB.debugger = true |
| | | } else { |
| | | Object.defineProperty(GLOB, 'debugger', { |
| | | writable: false, |
| | | value: GLOB.debugger |
| | | }) |
| | | |
| | | GLOB.breakpoint = false |
| | | } |
| | | } else { |
| | | if (sessionStorage.getItem('breakpoint')) { |
| | | GLOB.debugger = true |