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