提交 77759aa4 authored 作者: 郑伟娜's avatar 郑伟娜

修改登录/退出跳转

上级 37d0004d
...@@ -145,9 +145,9 @@ export default { ...@@ -145,9 +145,9 @@ export default {
let ssa = window.location.host let ssa = window.location.host
let ht = document.location.protocol let ht = document.location.protocol
if(ssa =='localhost:1024'){ if(ssa =='localhost:1024'){
window.location.href=ht+'//'+this.ssourl +'/logout?redirect='+ht+'//'+ssa+'/login' window.location.href=ht+'//'+this.ssourl +'/api/v2/logout?redirect='+ht+'//'+ssa+'/login'
}else{ }else{
window.location.href=ht+'//'+this.ssourl +'/logout?redirect='+ht+'//'+ssa+'/login' window.location.href=ht+'//'+this.ssourl +'/api/v2/logout?redirect='+ht+'//'+ssa+'/login'
} }
}) })
}) })
......
...@@ -785,14 +785,14 @@ ...@@ -785,14 +785,14 @@
store.dispatch('LogOut').then(() => { store.dispatch('LogOut').then(() => {
let ssa = window.location.host; let ssa = window.location.host;
let ht = document.location.protocol; let ht = document.location.protocol;
window.location.href = ht + '//' + this.ssourl + '/login?redirect=' + ht + '//' + ssa + '/platformlogin' window.location.href = ht + '//' + this.ssourl + '/login.html?redirect=' + ht + '//' + ssa + '/platformlogin'
}) })
}, },
// 去登录 // 去登录
toLogin() { toLogin() {
let ssa = window.location.host; let ssa = window.location.host;
let ht = document.location.protocol; let ht = document.location.protocol;
window.location.href = ht + '//' + this.ssourl + '/login?redirect=' + ht + '//' + ssa + '/platformlogin' window.location.href = ht + '//' + this.ssourl + '/login.html?redirect=' + ht + '//' + ssa + '/platformlogin'
// window.location.href = 'http://sso.jxhh.com/login?redirect=http://' + window.location.host + '/platformlogin' // window.location.href = 'http://sso.jxhh.com/login?redirect=http://' + window.location.host + '/platformlogin'
} }
......
...@@ -67,9 +67,9 @@ export default { ...@@ -67,9 +67,9 @@ export default {
var that = this var that = this
setTimeout(function (){ setTimeout(function (){
if(ssa =='localhost:1024'){ if(ssa =='localhost:1024'){
window.location.href=ht+'//'+that.ssourl+'/login?redirect='+ht+'//'+ssa+'/platformlogin' window.location.href=ht+'//'+that.ssourl+'/login.html?redirect='+ht+'//'+ssa+'/platformlogin'
}else{ }else{
window.location.href=ht+'//'+that.ssourl+'/login?redirect='+ht+'//'+ssa+'/platformlogin' window.location.href=ht+'//'+that.ssourl+'/login.html?redirect='+ht+'//'+ssa+'/platformlogin'
} }
}, 1000) }, 1000)
} }
......
...@@ -89,9 +89,9 @@ ...@@ -89,9 +89,9 @@
let that = this let that = this
setTimeout(function () { setTimeout(function () {
if (ssa == 'localhost:1024') { if (ssa == 'localhost:1024') {
window.location.href = ht+'//'+that.ssourl+'/logout?redirect='+ht+'//' + ssa + '/login' window.location.href = ht+'//'+that.ssourl+'/api/v2/logout?redirect='+ht+'//' + ssa + '/login'
} else { } else {
window.location.href = ht+'//'+that.ssourl+'/logout?redirect='+ht+'//' + ssa + '/login' window.location.href = ht+'//'+that.ssourl+'/api/v2/logout?redirect='+ht+'//' + ssa + '/login'
} }
}, 1000) }, 1000)
} }
...@@ -104,9 +104,9 @@ ...@@ -104,9 +104,9 @@
let that = this let that = this
setTimeout(function () { setTimeout(function () {
if (ssa == 'localhost:1024') { if (ssa == 'localhost:1024') {
window.location.href = ht+'//'+that.ssourl+'/logout?redirect='+ht+'//' + ssa + '/login' window.location.href = ht+'//'+that.ssourl+'/api/v2/logout?redirect='+ht+'//' + ssa + '/login'
} else { } else {
window.location.href = ht+'//'+that.ssourl+'/logout?redirect='+ht+'//' + ssa + '/login' window.location.href = ht+'//'+that.ssourl+'/api/v2/logout?redirect='+ht+'//' + ssa + '/login'
} }
}, 1000) }, 1000)
this.loading = false this.loading = false
......
...@@ -366,9 +366,9 @@ ...@@ -366,9 +366,9 @@
var ssa = window.location.host var ssa = window.location.host
setTimeout(function (){ setTimeout(function (){
if(ssa =='localhost:1024'){ if(ssa =='localhost:1024'){
window.location.href='http://sso.jxhh.com/logout?redirect=http://'+ssa+'/login' window.location.href='http://sso.jxhh.com/api/v2/logout?redirect=http://'+ssa+'/login'
}else{ }else{
window.location.href='http://sso.jxhh.com/logout?redirect=http://'+ssa+'/login' window.location.href='http://sso.jxhh.com/api/v2/logout?redirect=http://'+ssa+'/login'
} }
}, 1000) }, 1000)
}) })
...@@ -394,9 +394,9 @@ ...@@ -394,9 +394,9 @@
var ssa = window.location.host var ssa = window.location.host
setTimeout(function (){ setTimeout(function (){
if(ssa =='localhost:1024'){ if(ssa =='localhost:1024'){
window.location.href='http://sso.jxhh.com/logout?redirect=http://'+ssa+'/login' window.location.href='http://sso.jxhh.com/api/v2/logout?redirect=http://'+ssa+'/login'
}else{ }else{
window.location.href='http://sso.jxhh.com/logout?redirect=http://'+ssa+'/login' window.location.href='http://sso.jxhh.com/api/v2/logout?redirect=http://'+ssa+'/login'
} }
}, 1000) }, 1000)
}) })
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论