king
2021-06-02 e543372cc70a19ff2630c79d8421c2c593e54e5f
src/components/header/loginform.jsx
@@ -11,7 +11,7 @@
  }
  state = {
    dict: localStorage.getItem('lang') !== 'en-US' ? zhCN : enUS
    dict: sessionStorage.getItem('lang') !== 'en-US' ? zhCN : enUS
  }
  handleConfirm = () => {
@@ -32,9 +32,7 @@
    if (e.target.value) {
      if (!this.props.form.getFieldValue(key)) {
        const input = document.getElementById(key)
        if (input) {
          input.focus()
        }
        input && input.focus()
        return
      }
      this.props.handleSubmit()
@@ -45,9 +43,7 @@
  componentDidMount () {
    const input = document.getElementById('username')
    if (input) {
      input.focus()
    }
    input && input.focus()
  }
  render() {