From bec3daa191f466b019bf4c2aa3556f20b2fc0fa9 Mon Sep 17 00:00:00 2001 From: openEuler-Personal Date: Wed, 26 Feb 2025 21:17:00 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=E4=BF=AE=E5=A4=8D=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=BC=B9=E5=87=BA401=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=20Signed-off-by:=20He=20Shoucheng?= =?UTF-8?q?=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apis/tools.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/apis/tools.ts b/src/apis/tools.ts index 2e51c733..af39b3b4 100644 --- a/src/apis/tools.ts +++ b/src/apis/tools.ts @@ -176,6 +176,10 @@ export const handleStatusError = async ( handleAuthorize(status); return; } + if (originalRequest.url === '/api/app/recent') { + handleAuthorize(status); + return; + } //引入新的cookie后,会根据用户的请求重置token有效期,先删除重发逻辑,后期修改 // const suc = await refreshToken(originalRequest); // if(!suc){ -- Gitee