fix(auth): bad localStorage keymapping

This commit is contained in:
kwicxy
2025-06-04 18:58:53 +08:00
parent 91982eb002
commit 75db2bd366
+1 -1
View File
@@ -32,7 +32,7 @@ export const useAuthStore = defineStore({
},
logout() {
this.username = '';
localStorage.removeItem('username');
localStorage.removeItem('user');
localStorage.removeItem('token');
router.push('/auth/login');
},