king
2020-03-11 590a8198e9fcb503aaeb04f6d550c65bf30c0566
src/views/login/index.jsx
@@ -13,6 +13,7 @@
import './index.scss'
const LoginForm = asyncComponent(() => import('./loginform'))
const Action = asyncComponent(() => import('@/tabviews/tableshare/actionList'))
const iszhCN = !localStorage.getItem('lang') || localStorage.getItem('lang') === 'zh-CN'
class Login extends Component {
@@ -28,7 +29,8 @@
    ICP: window.GLOB.icp || 'ICP备案: 京ICP备12007830号',
    bgColor: window.GLOB.bgColor || '#000000',
    lineColor: window.GLOB.lineColor || '#1890ff',
    website: window.GLOB.website || (!window.GLOB.copyRight && 'http://minkesoft.com')
    website: window.GLOB.website || (!window.GLOB.copyRight && 'http://minkesoft.com'),
    loaded: false
  }
  changelang (item) {
@@ -116,7 +118,8 @@
        localStorage.setItem('AuthCode', box)
        this.setState({
          auth: true
          auth: true,
          loaded: true
        })
      } else {
        localStorage.removeItem('AuthCode')
@@ -136,6 +139,7 @@
  }
  render () {
    return (
      <div className="login-container" style={{backgroundImage: 'url(' + this.state.bgImage + ')', backgroundColor: this.state.bgColor}}>
        <div className="logo" style={{borderColor: this.state.lineColor}}>
@@ -160,6 +164,7 @@
          }
          <p dangerouslySetInnerHTML={{ __html: this.state.ICP.replace(/\s/ig, '&nbsp;') }}></p>
        </div>
        {this.state.loaded ? <div style={{position: 'fixed', bottom: '-1000px'}}><Action setting={{}} actions={[]} /></div> : null }
      </div>
    )
  }