feat: complete auth flow - email confirmation, login state, route guards

This commit is contained in:
2026-05-21 00:21:28 +08:00
parent c49ac7a42e
commit d4b07fba58
6 changed files with 258 additions and 78 deletions
+7 -2
View File
@@ -11,6 +11,11 @@ app.use(pinia)
app.use(router)
const authStore = useAuthStore()
authStore.initialize().then(() => {
if (window.location.pathname === '/auth/confirm') {
app.mount('#app')
})
} else {
authStore.initialize().then(() => {
app.mount('#app')
})
}