Commit 3357ffbb authored by afc163's avatar afc163

remove alert closable

parent 7ae6bac9
......@@ -60,15 +60,15 @@ export default class Login extends Component {
);
}
msg = (message) => {
return (<Alert
key={new Date().getTime()}
style={{ marginBottom: 16 }}
message={message}
type="error"
showIcon
closable
/>);
renderMessage = (message) => {
return (
<Alert
style={{ marginBottom: 16 }}
message={message}
type="error"
showIcon
/>
);
}
render() {
......@@ -84,7 +84,7 @@ export default class Login extends Component {
login.status === 'error' &&
login.type === 'account' &&
login.submitting === false &&
this.msg('账户或密码错误')
this.renderMessage('账户或密码错误')
}
<FormItem>
{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('验证码错误')
}
<FormItem>
{getFieldDecorator('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