| | |
| | | localStorage.removeItem('debug') |
| | | localStorage.removeItem('role_id') |
| | | |
| | | let lang = sessionStorage.getItem('lang') || 'zh-CN' |
| | | |
| | | sessionStorage.clear() |
| | | |
| | | sessionStorage.setItem('lang', lang) |
| | | } |
| | | |
| | | changelang (item) { |
| | | // 切换语言 |
| | | this.setState({ |
| | | dict: item === 'zh-CN' ? zhCN : enUS |
| | | }) |
| | | // this.setState({ |
| | | // dict: item === 'zh-CN' ? zhCN : enUS |
| | | // }) |
| | | localStorage.setItem(_href + 'lang', item !== 'en-US' ? 'zh-CN' : 'en-US') |
| | | sessionStorage.setItem('lang', item !== 'en-US' ? 'zh-CN' : 'en-US') |
| | | |
| | | window.location.reload() |
| | | } |
| | | |
| | | handleSubmit = () => { |
| | |
| | | window.GLOB.externalDatabase = `[${res.paas_externalDatabase}]..` |
| | | } |
| | | |
| | | localStorage.setItem(_href + 'lang', param.lang || 'zh-CN') |
| | | sessionStorage.setItem('lang', param.lang || 'zh-CN') |
| | | // localStorage.setItem(_href + 'lang', param.lang || 'zh-CN') |
| | | // sessionStorage.setItem('lang', param.lang || 'zh-CN') |
| | | |
| | | sessionStorage.removeItem('visitorUserID') |
| | | sessionStorage.removeItem('visitorLoginUID') |
| | |
| | | }) |
| | | message.warning('登录失败,用户名或密码错误!') |
| | | } else { |
| | | window.location.replace(document.location.origin + '/zh-CN/Home/Index') |
| | | let lang = sessionStorage.getItem('lang') !== 'en-US' ? '/zh-CN' : '/en-US' |
| | | window.location.replace(document.location.origin + lang + '/Home/Index') |
| | | } |
| | | }) |
| | | } else { |
| | |
| | | window.GLOB.externalDatabase = `[${res.paas_externalDatabase}]..` |
| | | } |
| | | |
| | | localStorage.setItem(_href + 'lang', param.lang || 'zh-CN') |
| | | sessionStorage.setItem('lang', param.lang || 'zh-CN') |
| | | // localStorage.setItem(_href + 'lang', param.lang || 'zh-CN') |
| | | // sessionStorage.setItem('lang', param.lang || 'zh-CN') |
| | | |
| | | sessionStorage.removeItem('visitorUserID') |
| | | sessionStorage.removeItem('visitorLoginUID') |
| | |
| | | platName: res.SysName || '', |
| | | bgImage: res.Banner || '', |
| | | loginlogo: res.loginlogo || '', |
| | | copyRight: res.CopyRightYear && res.CopyRightOrg ? `Copyright©${res.CopyRightYear} 所有相关版权归 ${res.CopyRightOrg}` : '', |
| | | copyRight: res.CopyRightYear && res.CopyRightOrg ? `Copyright©${res.CopyRightYear} ${this.state.dict['login.copyright']} ${res.CopyRightOrg}` : '', |
| | | ICP: res.ICP || '', |
| | | mainlogo: res.indexlogo || '', |
| | | doclogo: res.doclogo || '', |