Commit 4597513a by 陈玉桐

fix

parent 352eb86b
...@@ -19,11 +19,9 @@ router.beforeEach((to, from, next) => { ...@@ -19,11 +19,9 @@ router.beforeEach((to, from, next) => {
if(!getUrlParam('token')){//地址不携带 token if(!getUrlParam('token')){//地址不携带 token
//本地没有存储 token 去请求授权 ,有存储token直接跳转 //本地没有存储 token 去请求授权 ,有存储token直接跳转
if(!localStorage.getItem("token")){ if(!localStorage.getItem("token")){
request({ // let _url = document.location.href.split('#')[0]
url: '/api/MarketingToolApi/Wechat/index', // location.href = _url+'api/MarketingToolApi/Wechat/index'
method: 'post' location.href = 'api/MarketingToolApi/Wechat/index'
}).then(response => {
})
}else{ }else{
next() next()
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment