提交 49900d7a 编写于 作者: Yuanzhao.dai's avatar Yuanzhao.dai

log out fixed

上级 b6fff308
......@@ -87,7 +87,7 @@ export default {
} else {
if(!localStorage.getItem('storageToken')) {
console.log('域名',window.location.host)
if(window.location.host.indexOf("work.yunqueyi") != -1) {
if(window.location.host.indexOf("work.yunqueyi") != -1&&window.location.host.indexOf("test2-work.yunqueyi") == -1) {
window.location.href = getLoginUrl('?from=work&type=logout') // 没有token返回登录页面
return;
} else {
......@@ -99,7 +99,7 @@ export default {
}
}else {
if(!localStorage.getItem('storageToken')) {
if(window.location.host.indexOf("work.yunqueyi") != -1) {
if(window.location.host.indexOf("work.yunqueyi") != -1&&window.location.host.indexOf("test2-work.yunqueyi") == -1) {
window.location.href = getLoginUrl('?from=work&type=logout') // 没有token返回登录页面
return;
......@@ -143,7 +143,9 @@ export default {
},
watch: {
_token(val) {
vm.getUserAuth(val)
if(val!=undefined&&val!=null) {
vm.getUserAuth(val)
}
}
}
}
......
......@@ -55,7 +55,7 @@ export default {
if(vm.idType == 1) { // 内部
window.location.href = getInnerLoginUrl()
} else {
if(window.location.host.indexOf("work.yunqueyi") != -1) {
if(window.location.host.indexOf("work.yunqueyi") != -1&&window.location.host.indexOf("test2-work.yunqueyi") == -1) {
window.location.href = getLoginUrl('?from=work&type=logout')
} else {
this.$router.push('/login')
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册