| | |
| | | window.GLOB.$error = false |
| | | |
| | | let service = window.GLOB.service ? '-' + window.GLOB.service.replace('/', '') : '' |
| | | let lang = sessionStorage.getItem('lang') !== 'zh-CN' ? sessionStorage.getItem('lang') : '' |
| | | let lang = sessionStorage.getItem('lang') || 'zh-CN' |
| | | lang = lang !== 'zh-CN' ? lang : '' |
| | | let db = `mkdb${service + lang}` |
| | | |
| | | if (window.indexedDB) { |
| | |
| | | |
| | | state = { |
| | | loading: true, |
| | | background: sessionStorage.getItem('home_background'), |
| | | background: sessionStorage.getItem('home_background') || 'unset', |
| | | waiting: true, |
| | | view: '' |
| | | } |
| | |
| | | } |
| | | |
| | | if (res.query_address !== 'true') { |
| | | localStorage.setItem(_addressUrl, 'false') |
| | | localStorage.removeItem(_addressUrl) |
| | | } else { |
| | | localStorage.setItem(_addressUrl, 'true') |
| | | this.queryAddress() |
| | |
| | | |
| | | localStorage.setItem(window.GLOB.sysSign + 'pwdlevel', level) |
| | | |
| | | sessionStorage.setItem('home_background', res.index_background_color || '') |
| | | res.index_background_color && sessionStorage.setItem('home_background', res.index_background_color) |
| | | |
| | | let seconds = 0 |
| | | if (res.sys_datetime) { |
| | |
| | | UNSAFE_componentWillMount () { |
| | | const { loginWays } = this.props |
| | | let remember = true |
| | | |
| | | if (localStorage.getItem(window.location.href.split('#')[0] + 'users')) { // 过渡 |
| | | localStorage.setItem(window.GLOB.sysSign + 'users', localStorage.getItem(window.location.href.split('#')[0] + 'users')) |
| | | localStorage.setItem(window.GLOB.sysSign + 'remember', localStorage.getItem(window.location.href.split('#')[0] + 'remember')) |
| | | localStorage.removeItem(window.location.href.split('#')[0] + 'users') |
| | | } |
| | | |
| | | if (localStorage.getItem(window.GLOB.sysSign + 'remember') === 'false') { |
| | | remember = false |
| | |
| | | |
| | | localStorage.setItem(window.GLOB.sysSign + 'pwdlevel', level) |
| | | |
| | | sessionStorage.setItem('home_background', res.index_background_color || '') |
| | | res.index_background_color && sessionStorage.setItem('home_background', res.index_background_color) |
| | | |
| | | let seconds = 0 |
| | | if (res.sys_datetime) { |