From 881dd2dec10de7ed7717c9e5e7cb0bff1d53b442 Mon Sep 17 00:00:00 2001 From: Hiro Date: Tue, 31 Mar 2026 00:30:34 +0000 Subject: [PATCH] Fix: Redirect to /login after logout --- src/stores/auth.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/stores/auth.ts b/src/stores/auth.ts index db5fe8f..338d959 100644 --- a/src/stores/auth.ts +++ b/src/stores/auth.ts @@ -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