Commit 32a51936 authored by ι™ˆεΈ…'s avatar ι™ˆεΈ…

change message to Modal

parent a375bddc
...@@ -56,7 +56,9 @@ class Login extends Component { ...@@ -56,7 +56,9 @@ class Login extends Component {
}); });
}, },
}, },
form, form: {
...form,
},
updateActive: activeItem => { updateActive: activeItem => {
const { type, active } = this.state; const { type, active } = this.state;
if (active[type]) { if (active[type]) {
......
...@@ -2,7 +2,7 @@ import React, { Component } from 'react'; ...@@ -2,7 +2,7 @@ import React, { Component } from 'react';
import { connect } from 'dva'; import { connect } from 'dva';
import { formatMessage, FormattedMessage } from 'umi-plugin-react/locale'; import { formatMessage, FormattedMessage } from 'umi-plugin-react/locale';
import Link from 'umi/link'; import Link from 'umi/link';
import { Checkbox, Alert, message, Icon } from 'antd'; import { Checkbox, Alert, Modal, Icon } from 'antd';
import Login from '@/components/Login'; import Login from '@/components/Login';
import styles from './Login.less'; import styles from './Login.less';
...@@ -35,7 +35,10 @@ class LoginPage extends Component { ...@@ -35,7 +35,10 @@ class LoginPage extends Component {
}) })
.then(resolve) .then(resolve)
.catch(reject); .catch(reject);
message.warning(formatMessage({ id: 'app.login.verification-code-warning' }));
Modal.info({
title: formatMessage({ id: 'app.login.verification-code-warning' }),
});
} }
}); });
}); });
......
...@@ -3,7 +3,7 @@ import { connect } from 'dva'; ...@@ -3,7 +3,7 @@ import { connect } from 'dva';
import { formatMessage, FormattedMessage } from 'umi-plugin-react/locale'; import { formatMessage, FormattedMessage } from 'umi-plugin-react/locale';
import Link from 'umi/link'; import Link from 'umi/link';
import router from 'umi/router'; import router from 'umi/router';
import { Form, Input, Button, message, Select, Row, Col, Popover, Progress } from 'antd'; import { Form, Input, Button, Modal, Select, Row, Col, Popover, Progress } from 'antd';
import styles from './Register.less'; import styles from './Register.less';
const FormItem = Form.Item; const FormItem = Form.Item;
...@@ -75,7 +75,9 @@ class Register extends Component { ...@@ -75,7 +75,9 @@ class Register extends Component {
clearInterval(this.interval); clearInterval(this.interval);
} }
}, 1000); }, 1000);
message.warning(formatMessage({ id: 'app.login.verification-code-warning' })); Modal.info({
title: formatMessage({ id: 'app.login.verification-code-warning' }),
});
}; };
getPasswordStatus = () => { getPasswordStatus = () => {
......
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