king
2020-03-17 5c8860f3cd8921e7eb0da7749628e9dc669b3203
src/views/login/index.jsx
@@ -13,7 +13,7 @@
import './index.scss'
const LoginForm = asyncComponent(() => import('./loginform'))
const Action = asyncComponent(() => import('@/tabviews/tableshare/actionList'))
// const Action = asyncComponent(() => import('@/tabviews/tableshare/actionList'))
const iszhCN = !localStorage.getItem('lang') || localStorage.getItem('lang') === 'zh-CN'
class Login extends Component {
@@ -57,9 +57,6 @@
  async loginsubmit (param) {
    // 登录提交
    // let password = this.md5Password(param.password)
    // let result = await Api.loginsystem(param.username, param.password)
    // if (!result.IsError) {
    let res = await Api.getusermsg(param.username, param.password)
    if (res.status) {
      sessionStorage.setItem('UserID', res.UserID)
@@ -90,12 +87,6 @@
        isDisabled: false
      })
    }
    // } else {
    //   message.warning(result.Message)
    //   this.setState({
    //     isDisabled: false
    //   })
    // }
  }
  componentDidMount () {
@@ -164,7 +155,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 }
        {/* {this.state.loaded ? <div style={{position: 'fixed', bottom: '-1000px'}}><Action setting={{}} actions={[]} /></div> : null } */}
      </div>
    )
  }