From b822b8a41f7361f56b45b87417f7f916d95d85d5 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Mon, 7 Apr 2025 16:04:14 +0800 Subject: [PATCH] =?UTF-8?q?perf(X-Pack):=20=E4=BC=98=E5=8C=96=20Token=20?= =?UTF-8?q?=E5=88=B7=E6=96=B0=E6=9C=BA=E5=88=B6=EF=BC=8C=E9=81=BF=E5=85=8D?= =?UTF-8?q?=E9=9D=9E=E5=BF=85=E8=A6=81=E5=BC=80=E9=94=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/config/axios/refresh.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core-frontend/src/config/axios/refresh.ts b/core/core-frontend/src/config/axios/refresh.ts index 2eeac62a44..bfa2386fa6 100644 --- a/core/core-frontend/src/config/axios/refresh.ts +++ b/core/core-frontend/src/config/axios/refresh.ts @@ -55,7 +55,7 @@ export const configHandler = config => { if (wsCache.get('user.token')) { config.headers['X-DE-TOKEN'] = wsCache.get('user.token') const expired = isExpired() - if (expired && config.url !== refreshUrl) { + if (expired && !config.url.includes(refreshUrl)) { if (!getRefreshStatus()) { setRefreshStatus(true) refreshApi(Date.now())