From 3357ffbb85a80b31b18300750e50c3954f16c9e1 Mon Sep 17 00:00:00 2001 From: afc163 Date: Mon, 11 Sep 2017 22:38:46 +0800 Subject: [PATCH] remove alert closable --- src/routes/User/Login.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/routes/User/Login.js b/src/routes/User/Login.js index c81f4036..4db2e4a7 100644 --- a/src/routes/User/Login.js +++ b/src/routes/User/Login.js @@ -60,15 +60,15 @@ export default class Login extends Component { ); } - msg = (message) => { - return (); + renderMessage = (message) => { + return ( + + ); } render() { @@ -84,7 +84,7 @@ export default class Login extends Component { login.status === 'error' && login.type === 'account' && login.submitting === false && - this.msg('账户或密码错误') + this.renderMessage('账户或密码错误') } {getFieldDecorator('userName', { @@ -117,7 +117,7 @@ export default class Login extends Component { login.status === 'error' && login.type === 'mobile' && login.submitting === false && - this.msg('验证码错误') + this.renderMessage('验证码错误') } {getFieldDecorator('mobile', { -- GitLab