update 单点登录-退出登录
This commit is contained in:
@@ -215,7 +215,7 @@ export default {
|
||||
content: '真的要注销登录吗 ?',
|
||||
onOk () {
|
||||
return that.Logout({}).then(() => {
|
||||
window.location.replace(process.env.VUE_APP_LOGIN_PAGE)
|
||||
window.location.replace(process.env.VUE_APP_LOGOUT_PAGE)
|
||||
}).catch(err => {
|
||||
that.$message.warning({
|
||||
title: '错误',
|
||||
|
||||
@@ -176,8 +176,9 @@ const user = {
|
||||
const sevice = 'http://' + window.location.host + '/'
|
||||
const serviceUrl = encodeURIComponent(sevice)
|
||||
window.location.href = process.env.VUE_APP_CAS_BASE_URL + '/logout?service=' + serviceUrl
|
||||
} else {
|
||||
window.location.replace(process.env.VUE_APP_LOGOUT_PAGE)
|
||||
}
|
||||
window.location.replace(process.env.VUE_APP_LOGIN_PAGE)
|
||||
resolve()
|
||||
}).catch(() => {
|
||||
resolve()
|
||||
|
||||
Reference in New Issue
Block a user