Commit 4778d953 authored by afc163's avatar afc163

Fix login fail

parent 8a232908
...@@ -60,7 +60,7 @@ export default class LoginPage extends Component { ...@@ -60,7 +60,7 @@ export default class LoginPage extends Component {
{ {
login.status === 'error' && login.status === 'error' &&
login.type === 'account' && login.type === 'account' &&
login.submitting === false && !login.submitting &&
this.renderMessage('账户或密码错误') this.renderMessage('账户或密码错误')
} }
<UserName name="userName" placeholder="admin/user" /> <UserName name="userName" placeholder="admin/user" />
...@@ -70,7 +70,7 @@ export default class LoginPage extends Component { ...@@ -70,7 +70,7 @@ export default class LoginPage extends Component {
{ {
login.status === 'error' && login.status === 'error' &&
login.type === 'mobile' && login.type === 'mobile' &&
login.submitting === false && !login.submitting &&
this.renderMessage('验证码错误') this.renderMessage('验证码错误')
} }
<Mobile name="mobile" /> <Mobile name="mobile" />
......
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