| | |
| | | import '@/assets/css/action.scss' |
| | | import '@/assets/css/viewstyle.scss' |
| | | |
| | | if (window.location.href.indexOf('#/design') > -1) { // 编辑页面刷新时,跳转至主页 |
| | | window.location.replace(window.location.href.replace(/design/ig, 'main')) |
| | | } |
| | | |
| | | options.sysType = window.atob(options.sysType.replace('$mk', '')) |
| | | options.caId = window.atob(options.caId.replace('$mk', '')) |
| | | options.cakey = window.atob(options.cakey.replace('$mk', '')) |
| | | options.cdomain = window.atob(options.cdomain.replace('$mk', '')) |
| | | |
| | | if (options.cdomain && options.sysType !== 'cloud') { |
| | | options.cloudServiceApi = options.cdomain + '/webapi/dostars' |
| | | } |
| | | |
| | | if (!localStorage.getItem('SessionUid')) { |
| | | localStorage.setItem('SessionUid', (() => { |
| | | let uuid = [] |
| | |
| | | ) |
| | | } |
| | | |
| | | sessionStorage.removeItem('isEditState') |
| | | |
| | | fetch('../options.json') |
| | | .then(response => response.json()) |
| | | .catch(() => { |
| | |
| | | } |
| | | } |
| | | |
| | | if (options.cdomain && options.sysType !== 'cloud') { |
| | | options.cloudServiceApi = options.cdomain + '/webapi/dostars' |
| | | } |
| | | |
| | | let GLOB = {} |
| | | GLOB.appId = config.appId || '' |
| | | GLOB.lineColor = config.lineColor || '' |