mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-09-29 22:56: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();
|
clearAuthStorage();
|
||||||
|
|
||||||
authStore.$reset();
|
authStore.$reset();
|
||||||
|
token.value = '';
|
||||||
|
|
||||||
if (!route.meta.constant) {
|
if (!route.meta.constant) {
|
||||||
await toLogin();
|
await toLogin();
|
||||||
|
Loading…
Reference in New Issue
Block a user