mirror of
https://github.com/dataease/dataease.git
synced 2026-05-15 05:22:13 +08:00
perf(X-Pack): 认证对接-认证失败禁止注销 SSO 信息 #16615
This commit is contained in:
committed by
fit2cloud-chenyw
parent
c3e36dc8ee
commit
ad5224feb5
@@ -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', '')
|
||||
|
||||
2
de-xpack
2
de-xpack
Submodule de-xpack updated: 65e0b1c36b...afcf28e219
Reference in New Issue
Block a user