Commit 1679373a authored by 陈帅's avatar 陈帅

add register success

parent 33b1bd03
...@@ -7,6 +7,7 @@ import styles from './style.less'; ...@@ -7,6 +7,7 @@ import styles from './style.less';
import { Dispatch } from 'redux'; import { Dispatch } from 'redux';
import { IStateType } from './model'; import { IStateType } from './model';
import { FormComponentProps } from 'antd/lib/form'; import { FormComponentProps } from 'antd/lib/form';
import router from 'umi/router';
const FormItem = Form.Item; const FormItem = Form.Item;
const { Option } = Select; const { Option } = Select;
...@@ -92,9 +93,16 @@ class PAGE_NAME_UPPER_CAMEL_CASE extends Component< ...@@ -92,9 +93,16 @@ class PAGE_NAME_UPPER_CAMEL_CASE extends Component<
interval: number | undefined; interval: number | undefined;
componentDidUpdate() { componentDidUpdate() {
const { BLOCK_NAME_CAMEL_CASE } = this.props; const { BLOCK_NAME_CAMEL_CASE, form } = this.props;
const account = form.getFieldValue('mail');
if (BLOCK_NAME_CAMEL_CASE.status === 'ok') { if (BLOCK_NAME_CAMEL_CASE.status === 'ok') {
message.success('注册成功!'); message.success('注册成功!');
router.push({
pathname: '/user/register-result',
state: {
account,
},
});
} }
} }
......
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