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