update: redirect after register
This commit is contained in:
parent
65cb2b7342
commit
c05011938c
|
@ -17,7 +17,8 @@
|
|||
"dev:parcel": "node scripts/dev-parcel.js",
|
||||
"deploy": "rsync -chavzP -e \"ssh -p 2222\" --stats dist/ root@209.58.165.19:/home/apps/giift/giift-customer-btn",
|
||||
"deploy:giift": "rsync -chavzP -e \"ssh -p 2222\" --stats dist/ root@209.58.165.19:/home/apps/giift/giift-customer",
|
||||
"dev2:parcel": "node scripts/link-assets.js; parcel public/index.parcel.html --out-file index.html --global $"
|
||||
"dev2:parcel": "node scripts/link-assets.js; parcel public/index.parcel.html --out-file index.html --global $",
|
||||
"build:deploy": "npm run build:parcel:prod && npm run deploy"
|
||||
},
|
||||
"author": "Asacreative",
|
||||
"repository": {
|
||||
|
|
|
@ -22,6 +22,7 @@ import { Upload, Icon, message } from 'antd';
|
|||
|
||||
import AutoComplete from './../../components/AutoComplete';
|
||||
import {appConfig} from "../../config/app";
|
||||
import {LINKS} from "../../routes";
|
||||
|
||||
// const province = require("./../../../../assets/data/province.json");
|
||||
// const city = require("./../../../../assets/data/city.json");
|
||||
|
@ -156,10 +157,11 @@ class RegisterPage extends React.Component {
|
|||
additional_data: {}
|
||||
};
|
||||
this.authStore.register(data).then(res => {
|
||||
message.success("Please check your email to confirm your account");
|
||||
setTimeout(() => {
|
||||
this.setState({ isLoading: false });
|
||||
message.success("Please check your email to confirm your account");
|
||||
}, 1000);
|
||||
this.props.history.push(LINKS.LOGIN);
|
||||
}, 250);
|
||||
}).catch(err => {
|
||||
this.setState({ isLoading: false });
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user