From 0105ba1e7746f3c08347f0c623491d896997e56a 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 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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', '')