| | |
| | | window.GLOB = window.GLOB || {} |
| | | |
| | | if (!(options.systemType === 'local' && window.GLOB.systemType === 'official')) { // 只有业务系统才可以设置为正式系统 |
| | | window.GLOB.systemType = 'test' |
| | | window.GLOB.systemType = '' |
| | | } |
| | | if (options.systemType !== 'local') { // sso,cloud不可设置单点服务器地址 |
| | | window.GLOB.mainSystemApi = '' |
| | |
| | | } |
| | | |
| | | if (process.env.NODE_ENV === 'production') { // 用于校验是否存在开发权限 |
| | | let _service = window.location.href.split('/index.html')[0].replace(new RegExp(document.location.origin + '/?', 'ig'), '') |
| | | let _service = window.location.href.replace(/\/index.html(.*)|\/#(.*)/ig, '').replace(new RegExp(document.location.origin + '/?', 'ig'), '') |
| | | window.GLOB.linkurl = window.location.href.split('#')[0] |
| | | window.GLOB.service = _service ? _service + '/' : '' |
| | | } else { |