|
|
@@ -43,14 +43,14 @@ const loginOut = async () => {
|
|
|
})
|
|
|
await userStore.loginOut()
|
|
|
tagsViewStore.delAllViews()
|
|
|
- // 优先跳转到CAS统一登录平台,未配置则回退到系统登录页
|
|
|
- const casLoginUrl = import.meta.env.VITE_CAS_LOGIN_URL
|
|
|
- if (casLoginUrl) {
|
|
|
+ // 优先跳转到CAS统一登录平台,未配置则回退到系统登录页 跳转到退出页
|
|
|
+ const casLogoutUrl = import.meta.env.VITE_CAS_LOGOUT_URL
|
|
|
+ if (casLogoutUrl) {
|
|
|
const serviceUrl = import.meta.env.VITE_CAS_SERVICE_URL
|
|
|
if (serviceUrl) {
|
|
|
- window.location.href = `${casLoginUrl}?service=${encodeURIComponent(serviceUrl)}`
|
|
|
+ window.location.href = `${casLogoutUrl}?service=${encodeURIComponent(serviceUrl)}`
|
|
|
} else {
|
|
|
- window.location.href = casLoginUrl
|
|
|
+ window.location.href = casLogoutUrl
|
|
|
}
|
|
|
} else {
|
|
|
replace('/login?redirect=/index')
|