Commit 846d3080 authored by Amumu's avatar Amumu Committed by 偏右

Use `submitting` from `props` (#1579)

parent 7dbd7c40
......@@ -53,7 +53,7 @@ export default class LoginPage extends Component {
<Tab key="account" tab="账户密码登录">
{login.status === 'error' &&
login.type === 'account' &&
!login.submitting &&
!submitting &&
this.renderMessage('账户或密码错误(admin/888888)')}
<UserName name="userName" placeholder="admin/user" />
<Password name="password" placeholder="888888/123456" />
......@@ -61,7 +61,7 @@ export default class LoginPage extends Component {
<Tab key="mobile" tab="手机号登录">
{login.status === 'error' &&
login.type === 'mobile' &&
!login.submitting &&
!submitting &&
this.renderMessage('验证码错误')}
<Mobile name="mobile" />
<Captcha name="captcha" />
......
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