From 75db2bd366ce416704fbb9229762507f870bd9ff Mon Sep 17 00:00:00 2001 From: kwicxy Date: Wed, 4 Jun 2025 18:58:53 +0800 Subject: [PATCH] fix(auth): bad `localStorage` keymapping --- dashboard/src/stores/auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboard/src/stores/auth.ts b/dashboard/src/stores/auth.ts index 4503a1219..d99c2df5c 100644 --- a/dashboard/src/stores/auth.ts +++ b/dashboard/src/stores/auth.ts @@ -32,7 +32,7 @@ export const useAuthStore = defineStore({ }, logout() { this.username = ''; - localStorage.removeItem('username'); + localStorage.removeItem('user'); localStorage.removeItem('token'); router.push('/auth/login'); },