Commit 4597513a by 陈玉桐

fix

parent 352eb86b
......@@ -19,11 +19,9 @@ router.beforeEach((to, from, next) => {
if(!getUrlParam('token')){//地址不携带 token
//本地没有存储 token 去请求授权 ,有存储token直接跳转
if(!localStorage.getItem("token")){
request({
url: '/api/MarketingToolApi/Wechat/index',
method: 'post'
}).then(response => {
})
// let _url = document.location.href.split('#')[0]
// location.href = _url+'api/MarketingToolApi/Wechat/index'
location.href = 'api/MarketingToolApi/Wechat/index'
}else{
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