Commit de86a30c authored by 陈帅's avatar 陈帅

Fix an error after registration is successful

parent 801109ed
...@@ -23,10 +23,10 @@ ...@@ -23,10 +23,10 @@
"prettier": "prettier --write ./src/**/**/**/*" "prettier": "prettier --write ./src/**/**/**/*"
}, },
"dependencies": { "dependencies": {
"@antv/data-set": "^0.9.5", "@antv/data-set": "^0.9.6",
"@babel/runtime": "^7.0.0", "@babel/runtime": "^7.0.0",
"antd": "^3.9.1", "antd": "^3.9.2",
"bizcharts": "^3.1.10", "bizcharts": "^3.2.2",
"bizcharts-plugin-slider": "^2.0.3", "bizcharts-plugin-slider": "^2.0.3",
"classnames": "^2.2.6", "classnames": "^2.2.6",
"dva": "^2.4.0", "dva": "^2.4.0",
...@@ -43,13 +43,12 @@ ...@@ -43,13 +43,12 @@
"prop-types": "^15.5.10", "prop-types": "^15.5.10",
"qs": "^6.5.2", "qs": "^6.5.2",
"rc-animate": "^2.4.4", "rc-animate": "^2.4.4",
"react": "^16.4.1", "react": "^16.5.1",
"react-container-query": "^0.11.0", "react-container-query": "^0.11.0",
"react-copy-to-clipboard": "^5.0.1", "react-copy-to-clipboard": "^5.0.1",
"react-document-title": "^2.0.3", "react-document-title": "^2.0.3",
"react-dom": "^16.4.2", "react-dom": "^16.5.1",
"react-fittext": "^1.0.0", "react-fittext": "^1.0.0",
"react-router-config": "^1.0.0-beta.4",
"react-router-dom": "^4.3.1" "react-router-dom": "^4.3.1"
}, },
"devDependencies": { "devDependencies": {
......
...@@ -36,17 +36,15 @@ class Register extends Component { ...@@ -36,17 +36,15 @@ class Register extends Component {
}; };
componentDidUpdate() { componentDidUpdate() {
const { form, register, dispatch } = this.props; const { form, register } = this.props;
const account = form.getFieldValue('mail'); const account = form.getFieldValue('mail');
if (register.status === 'ok') { if (register.status === 'ok') {
dispatch( router.push({
router.push({ pathname: '/user/register-result',
pathname: '/user/register-result', state: {
state: { account,
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