调整customer路由位置,吧登陆后的路由放在workshop路由下
All checks were successful
git提交控制 AiDA WEB-Node.js main 分支构建部署 / build (20.19.0) (push) Has been skipped
All checks were successful
git提交控制 AiDA WEB-Node.js main 分支构建部署 / build (20.19.0) (push) Has been skipped
This commit is contained in:
@@ -118,7 +118,7 @@ const handleLogin = async () => {
|
||||
userInfoStore.setToken(response.token)
|
||||
userInfoStore.setUserInfo(response.user)
|
||||
showToast('login success')
|
||||
router.replace('/stylist/customer')
|
||||
router.replace('/customer')
|
||||
}
|
||||
)
|
||||
}
|
||||
@@ -141,7 +141,7 @@ const handleGoogleLogin = async (accessToken: string) => {
|
||||
userInfoStore.setToken(result.token)
|
||||
userInfoStore.setUserInfo(result.user)
|
||||
showToast('Google login successful')
|
||||
router.replace('/stylist/customer')
|
||||
router.replace('/customer')
|
||||
} catch (error) {
|
||||
console.error('Google登录失败:', error)
|
||||
showToast('Google login failed, please try again')
|
||||
|
||||
Reference in New Issue
Block a user