king
2023-07-17 d29a083f94142a4534c18df91582ed944e296a29
src/components/header/loginform.jsx
@@ -43,7 +43,7 @@
      this.setState({
        remember: true,
        username: _user.username,
        password: '*********',
        password: _user.password ? '*********' : '',
        oripassword: _user.password
      })
    }
@@ -94,9 +94,16 @@
  }
  componentDidMount () {
    const { username, password } = this.state
    if (username && !password) {
      const input = document.getElementById('password')
      input && input.focus()
    } else {
    const input = document.getElementById('username')
    input && input.focus()
  }
  }
  render() {
    const { getFieldDecorator } = this.props.form