mirror of
https://github.com/certd/certd.git
synced 2026-04-16 05:50:50 +08:00
fix: 修复token过期后,疯狂打印token过期信息的bug
This commit is contained in:
@@ -120,7 +120,7 @@ function createService() {
|
||||
errorLog(error, error?.response?.config?.showErrorNotify);
|
||||
if (status === 401) {
|
||||
const userStore = useUserStore();
|
||||
userStore.logout();
|
||||
userStore.logout(true, true);
|
||||
}
|
||||
|
||||
if (error?.config?.onError) {
|
||||
|
||||
Reference in New Issue
Block a user