提交 975488c5 编写于 作者: yi.li's avatar yi.li

查看进入工作站时链接有无token

上级 32302f89
...@@ -81,6 +81,7 @@ export default { ...@@ -81,6 +81,7 @@ export default {
let href = window.location.href let href = window.location.href
let offset = href.indexOf("?") let offset = href.indexOf("?")
if(offset !== -1) { if(offset !== -1) {
console.log('链接有参数')
let paramStr = href.substring(offset + 1, href.length) let paramStr = href.substring(offset + 1, href.length)
let pars = base64decode(paramStr) let pars = base64decode(paramStr)
let paramMap = getUrlParamsMap(pars, "&") let paramMap = getUrlParamsMap(pars, "&")
...@@ -110,6 +111,7 @@ export default { ...@@ -110,6 +111,7 @@ export default {
} }
} }
}else { }else {
console.log('链接无参数')
if(!localStorage.getItem('storageToken')) { if(!localStorage.getItem('storageToken')) {
if(window.location.host.indexOf("work.yunqueyi") != -1&&window.location.host.indexOf("test2-work.yunqueyi") == -1) { if(window.location.host.indexOf("work.yunqueyi") != -1&&window.location.host.indexOf("test2-work.yunqueyi") == -1) {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册