Skip to content
This repository has been archived by the owner on Jul 6, 2024. It is now read-only.

Commit

Permalink
remove user info from cookies when logout
Browse files Browse the repository at this point in the history
Signed-off-by: cbh778899 <[email protected]>
  • Loading branch information
cbh778899 committed Jun 29, 2024
1 parent d2560a7 commit fe6a603
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions store/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ const useUser = defineStore('user', {
},
logoutUser() {
this.isLoggedIn = false;
new Cookies(null).remove('current-user');
this.userInformation = { id: null } as userInfo;
}
}
Expand Down

0 comments on commit fe6a603

Please sign in to comment.