This commit is contained in:
fuenmao
2026-09-22 15:40:58 +08:00
parent dec3dfdfe3
commit e6215912d9
6 changed files with 100 additions and 693 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ async function submit() {
: await healthApi.register(form)
saveTokens(output.accessToken, output.refreshToken)
showToast({ type: 'success', message: mode.value === 'login' ? '登录成功' : '注册成功' })
await router.replace(mode.value === 'login' ? '/dashboard' : '/onboarding')
await router.replace(mode.value === 'login' ? '/dashboard' : '/assessment')
} catch (error) {
showToast(error instanceof Error ? error.message : '操作失败')
} finally {