update 单点登录-退出登录

This commit is contained in:
赵霄
2023-11-15 12:08:02 +08:00
parent 5b4c806a40
commit d33ac0f0e8
6 changed files with 11 additions and 6 deletions
+2 -1
View File
@@ -3,4 +3,5 @@ VUE_APP_PLATFORM_NAME=JeroBoot 企业级快速开发平台
VUE_APP_SSO=false
VUE_TAG_FLAG=0
VUE_APP_LOGIN_PAGE='/user/login'
VUE_APP_CURRENT_SYSTEM='inner'
VUE_APP_CURRENT_SYSTEM='inner'
VUE_APP_LOGOUT_PAGE='/user/login'
+2 -1
View File
@@ -1,4 +1,5 @@
NODE_ENV=development
VUE_APP_TAG_FLAG=0
VUE_APP_LOGIN_PAGE='/user/login'
VUE_APP_CURRENT_SYSTEM='inner'
VUE_APP_CURRENT_SYSTEM='inner'
VUE_APP_LOGOUT_PAGE='/user/login'
+2 -1
View File
@@ -1,4 +1,5 @@
NODE_ENV=production
VUE_APP_TAG_FLAG=1
VUE_APP_LOGIN_PAGE='https://iam-uat.sinotruk.com:7011/idp/oauth2/authorize?redirect_uri=http://laws-test.sinotruk.com/dashboard/analysis&state=123&client_id=SRMS&response_type=code'
VUE_APP_CURRENT_SYSTEM='IAM'
VUE_APP_CURRENT_SYSTEM='IAM'
VUE_APP_LOGOUT_PAGE='https://iam-uat.sinotruk.com:7011/idp/profile/OAUTH2/Redirect/GLO?redirctToUrl=http://laws-test.sinotruk.com/dashboard/analysis&redirectToLogin=true&entityId=SRMS'
+2 -1
View File
@@ -4,4 +4,5 @@ VUE_APP_CAS_BASE_URL=http://cas.example.org:8443/cas
VUE_APP_ONLINE_BASE_URL=http://fileview.jero.com/onlinePreview
VUE_APP_TAG_FLAG=1
VUE_APP_LOGIN_PAGE='/user/login'
VUE_APP_CURRENT_SYSTEM='inner'
VUE_APP_CURRENT_SYSTEM='inner'
VUE_APP_LOGOUT_PAGE='/user/login'
+1 -1
View File
@@ -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: '错误',
+2 -1
View File
@@ -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()