fix some for iam
This commit is contained in:
@@ -237,9 +237,20 @@ function goToDetails(id: number) {
|
||||
if (id === 6) router.push({ name: 'report' })
|
||||
}
|
||||
|
||||
function logOut() {
|
||||
session.logout()
|
||||
async function logOut() {
|
||||
data.notify = false
|
||||
let central: string | null = null
|
||||
try {
|
||||
central = (await api.ssoLogoutUrl()).logout_url
|
||||
} catch {
|
||||
central = null
|
||||
}
|
||||
session.logout()
|
||||
sessionStorage.removeItem('gb_iam_sso_checked')
|
||||
if (central) {
|
||||
window.location.assign(central)
|
||||
return
|
||||
}
|
||||
router.push({ name: 'home' })
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user