From f0ca5624eaf526fb19ecc58a2b40b10c873c9721 Mon Sep 17 00:00:00 2001 From: Waiting Date: Wed, 5 Jun 2024 15:47:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E9=94=99=E8=AF=AF=E7=A0=81?= =?UTF-8?q?=E5=85=BC=E5=AE=B9=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/manifest.json | 2 +- src/utils/request/interceptors.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/manifest.json b/src/manifest.json index e0d990f..97574ec 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -40,4 +40,4 @@ "base": "/uniapp-vue3-template/" } } -} +} \ No newline at end of file diff --git a/src/utils/request/interceptors.ts b/src/utils/request/interceptors.ts index 241d641..6c02de4 100644 --- a/src/utils/request/interceptors.ts +++ b/src/utils/request/interceptors.ts @@ -61,7 +61,7 @@ function responseInterceptors() { } // 登录状态失效,重新登录 - if(data.code === 4011) { + if(data.code === 4011 || data?.retcode === 4011) { // 是否在获取token中,防止重复获取 if(!isRefreshing) { // 修改登录状态为true