调整customer路由位置,吧登陆后的路由放在workshop路由下
All checks were successful
git提交控制 AiDA WEB-Node.js main 分支构建部署 / build (20.19.0) (push) Has been skipped

This commit is contained in:
X1627315083
2025-12-19 13:40:15 +08:00
parent c157c0a14a
commit 67702b36b2
7 changed files with 43 additions and 47 deletions

View File

@@ -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')