From 060cd3f6641e93c18d1783a83103fc71287e83e3 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Mon, 19 Jan 2026 11:45:37 +0800 Subject: [PATCH] =?UTF-8?q?fix(X-Pack):=20=20=E7=AC=AC=E4=B8=89=E6=96=B9?= =?UTF-8?q?=E5=AE=A2=E6=88=B7=E7=AB=AF=E5=85=8D=E7=99=BB=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E8=B4=A6=E5=8F=B7=E5=AF=86=E7=A0=81=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/config/axios/service.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/core/core-frontend/src/config/axios/service.ts b/core/core-frontend/src/config/axios/service.ts index 1657b194e8..69e03785c2 100644 --- a/core/core-frontend/src/config/axios/service.ts +++ b/core/core-frontend/src/config/axios/service.ts @@ -257,9 +257,13 @@ service.interceptors.response.use( error.config.loading && tryHideLoading(permissionStore.getCurrentPath) if (header.has('DE-GATEWAY-FLAG')) { + const userToken = wsCache.get('user.token') + const inPlatformClient = !!wsCache.get('de-platform-client') clearCache() - const flag = header.get('DE-GATEWAY-FLAG') - localStorage.setItem('DE-GATEWAY-FLAG', flag.toString()) + if (!(userToken && inPlatformClient)) { + const flag = header.get('DE-GATEWAY-FLAG') + localStorage.setItem('DE-GATEWAY-FLAG', flag.toString()) + } let queryRedirectPath = '/workbranch/index' if (router.currentRoute.value.fullPath) { queryRedirectPath = router.currentRoute.value.fullPath as string