| | |
| | | import React from 'react' |
| | | import ReactDOM from 'react-dom' |
| | | import Route from './router' |
| | | import {Provider} from 'react-redux' |
| | | import { Provider } from 'react-redux' |
| | | import store from '@/store' |
| | | import * as serviceWorker from './serviceWorker' |
| | | import options from '@/store/options.js' |
| | |
| | | ) |
| | | } |
| | | |
| | | sessionStorage.removeItem('isEditState') |
| | | |
| | | // fetch(`./${process.env.NODE_ENV === 'production' ? 'build/' : ''}options.json`) |
| | | if (sessionStorage.getItem('loginError')) { |
| | | try { |
| | | let res = JSON.parse(sessionStorage.getItem('loginError')) |
| | | console.info(res.request) |
| | | console.info(res.response) |
| | | } catch {} |
| | | } |
| | | sessionStorage.removeItem('isEditState') |
| | | sessionStorage.removeItem('loginError') |
| | | |
| | | fetch(`./options.json`) |
| | | .then(response => response.json()) |
| | | .catch(() => { |
| | |
| | | GLOB.lineColor = config.lineColor || '' |
| | | GLOB.filter = config.filter || '' |
| | | |
| | | if (config.externalDatabase !== false && config.externalDatabase !== 'false' && config.externalDatabase !== undefined) { |
| | | GLOB.externalDatabase = config.externalDatabase || '' |
| | | } else { |
| | | GLOB.externalDatabase = null |
| | | } |
| | | |
| | | // 只有业务系统才可以设置为正式系统 |
| | | if (options.sysType === 'local' && (config.systemType === 'official' || config.systemType === 'production')) { |
| | | GLOB.systemType = 'production' |