更新注册地址配置,修改注册跳转逻辑为使用REGISTER_URL
This commit is contained in:
@ -159,12 +159,13 @@ const IndexPage: React.FC<any> = ({ user }) => {
|
||||
};
|
||||
|
||||
const toRegister = (type: string) => {
|
||||
history.push({
|
||||
pathname: '/register/supplier',
|
||||
query: {
|
||||
type: type,
|
||||
},
|
||||
});
|
||||
window.location.href = `${REGISTER_URL}/${type}?redirect=${encodeURIComponent(window.location.href)}`;
|
||||
// history.push({
|
||||
// pathname: '/register/supplier',
|
||||
// query: {
|
||||
// type: type,
|
||||
// },
|
||||
// });
|
||||
console.log(type);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user