mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-09-29 14:46:41 +08:00
fix(projects): remove token when logout
This commit is contained in:
parent
60bbd2d145
commit
6e1bf6c567
@ -44,6 +44,7 @@ export const useAuthStore = defineStore(SetupStoreId.Auth, () => {
|
||||
clearAuthStorage();
|
||||
|
||||
authStore.$reset();
|
||||
token.value = '';
|
||||
|
||||
if (!route.meta.constant) {
|
||||
await toLogin();
|
||||
|
Loading…
Reference in New Issue
Block a user