Commit f4431e6f authored by 陈帅's avatar 陈帅

password add onPressEnter

parent 2d3982ee
...@@ -84,7 +84,11 @@ export default class LoginPage extends Component { ...@@ -84,7 +84,11 @@ export default class LoginPage extends Component {
!submitting && !submitting &&
this.renderMessage('账户或密码错误(admin/888888)')} this.renderMessage('账户或密码错误(admin/888888)')}
<UserName name="userName" placeholder="admin/user" /> <UserName name="userName" placeholder="admin/user" />
<Password name="password" placeholder="888888/123456" /> <Password
name="password"
placeholder="888888/123456"
onPressEnter={() => this.loginForm.validateFields(this.handleSubmit)}
/>
</Tab> </Tab>
<Tab key="mobile" tab="手机号登录"> <Tab key="mobile" tab="手机号登录">
{login.status === 'error' && {login.status === 'error' &&
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment