From fe6a60346d79c727d8c990f83b58e41a0d514e45 Mon Sep 17 00:00:00 2001 From: cbh778899 Date: Sat, 29 Jun 2024 11:43:00 +1000 Subject: [PATCH] remove user info from cookies when logout Signed-off-by: cbh778899 --- store/user.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/store/user.ts b/store/user.ts index a846c0b..7795e33 100644 --- a/store/user.ts +++ b/store/user.ts @@ -99,6 +99,7 @@ const useUser = defineStore('user', { }, logoutUser() { this.isLoggedIn = false; + new Cookies(null).remove('current-user'); this.userInformation = { id: null } as userInfo; } }