From 846d308087731709d606f881f125b8859fb4613b Mon Sep 17 00:00:00 2001 From: Amumu Date: Sat, 2 Jun 2018 01:23:06 +0800 Subject: [PATCH] Use `submitting` from `props` (#1579) --- src/routes/User/Login.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/User/Login.js b/src/routes/User/Login.js index ade5a11d..ab0d2834 100644 --- a/src/routes/User/Login.js +++ b/src/routes/User/Login.js @@ -53,7 +53,7 @@ export default class LoginPage extends Component { {login.status === 'error' && login.type === 'account' && - !login.submitting && + !submitting && this.renderMessage('账户或密码错误(admin/888888)')} @@ -61,7 +61,7 @@ export default class LoginPage extends Component { {login.status === 'error' && login.type === 'mobile' && - !login.submitting && + !submitting && this.renderMessage('验证码错误')} -- GitLab