Merge pull request #8530 from dataease/pr@dev-v2@feat_custom_logout_path

feat: 增加自定义登出路径
This commit is contained in:
fit2cloud-chenyw 2024-03-15 09:44:34 +08:00 committed by GitHub
commit 6f481333c3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -30,6 +30,9 @@ export const logoutHandler = (justClean?: boolean) => {
window.location.href = '/oidcbi/oidc/logout'
return
}
if (wsCache.get('custom_auth_logout_url')) {
window.location.href = wsCache.get('custom_auth_logout_url')
}
router.push(justClean ? queryRedirectPath : `/login?redirect=${queryRedirectPath}`)
}