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