更新注册地址配置,修改注册跳转逻辑为使用REGISTER_URL

This commit is contained in:
linxd
2025-07-18 10:33:56 +08:00
parent 0af9171acd
commit 747cceeb18
4 changed files with 14 additions and 8 deletions

View File

@ -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);
};