From ad5224feb515da52d989bdaa6a009678099ca47a Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Wed, 13 Aug 2025 16:21:26 +0800 Subject: [PATCH] =?UTF-8?q?perf(X-Pack):=20=E8=AE=A4=E8=AF=81=E5=AF=B9?= =?UTF-8?q?=E6=8E=A5-=E8=AE=A4=E8=AF=81=E5=A4=B1=E8=B4=A5=E7=A6=81?= =?UTF-8?q?=E6=AD=A2=E6=B3=A8=E9=94=80=20SSO=20=E4=BF=A1=E6=81=AF=20#16615?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/utils/logout.ts | 8 +++++++- de-xpack | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/core/core-frontend/src/utils/logout.ts b/core/core-frontend/src/utils/logout.ts index 02ab17732c..23e7e58152 100644 --- a/core/core-frontend/src/utils/logout.ts +++ b/core/core-frontend/src/utils/logout.ts @@ -9,7 +9,7 @@ const permissionStore = usePermissionStoreWithOut() const userStore = useUserStoreWithOut() const interactiveStore = interactiveStoreWithOut() -export const logoutHandler = (justClean?: boolean) => { +export const logoutHandler = (justClean?: boolean, save_platform_status = false) => { userStore.clear() userStore.$reset() permissionStore.clear() @@ -25,6 +25,9 @@ export const logoutHandler = (justClean?: boolean) => { let pathname = window.location.pathname if (pathname) { if (pathname.includes('oidcbi/')) { + if (save_platform_status) { + return + } pathname = pathname.replace('oidcbi/', '') if (pathname.includes('mobile.html')) { pathname = pathname.replace('mobile.html', '') @@ -33,6 +36,9 @@ export const logoutHandler = (justClean?: boolean) => { window.location.href = pathname + '/oidcbi/oidc/logout' return } else if (pathname.includes('casbi/')) { + if (save_platform_status) { + return + } pathname = pathname.replace('casbi/', '') if (pathname.includes('mobile.html')) { pathname = pathname.replace('mobile.html', '') diff --git a/de-xpack b/de-xpack index 65e0b1c36b..afcf28e219 160000 --- a/de-xpack +++ b/de-xpack @@ -1 +1 @@ -Subproject commit 65e0b1c36b15f73e0c197465c8281715b11c7dcd +Subproject commit afcf28e2196cbfc5636f1ddb8a7049340f2290c1