king
2023-07-17 4756e7ad87ec0fb9a2e9d7276ac010e226f54be6
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