fix
This commit is contained in:
@@ -34,7 +34,6 @@ export const useAdminStore = defineStore('admin', () => {
|
||||
} catch (error) {
|
||||
// token失效,清除本地存储
|
||||
logout()
|
||||
console.error('Admin token is invalid, logging out')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,7 +27,6 @@ export const useAuthStore = defineStore('auth', () => {
|
||||
} catch (error) {
|
||||
// token失效,清除本地存储
|
||||
logout()
|
||||
console.error('Token is invalid, logging out')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user