fix(projects): remove token when logout

This commit is contained in:
Lucas 2024-09-12 08:18:54 +08:00
parent 60bbd2d145
commit 6e1bf6c567

View File

@ -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();