perf(X-Pack): 认证对接-认证失败禁止注销 SSO 信息 #16615

This commit is contained in:
fit2cloud-chenyw
2025-08-13 16:21:26 +08:00
committed by fit2cloud-chenyw
parent c3e36dc8ee
commit ad5224feb5
2 changed files with 8 additions and 2 deletions

View File

@@ -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', '')