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