diff --git a/src/routes/User/Login.js b/src/routes/User/Login.js index c81f4036d5b2b6a85ebb2cefaf0e6c18001883eb..4db2e4a7be522075882ef5ea4f9eb68086ced0ba 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', {