Fix: Redirect to /login after logout

This commit is contained in:
Hiro
2026-03-31 00:30:34 +00:00
parent ce938747ab
commit 881dd2dec1

View File

@@ -49,6 +49,7 @@ export const useAuthStore = defineStore('auth', () => {
token.value = null
user.value = null
localStorage.removeItem('access_token')
router.push('/login')
}
// Initialize user on store creation if token exists