fix: 修复token过期后,疯狂打印token过期信息的bug

This commit is contained in:
xiaojunnuo
2025-04-24 23:54:09 +08:00
parent 7d96a57d73
commit 50a5fa15bb
3 changed files with 964 additions and 10 deletions

View File

@@ -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) {