|
@@ -124,7 +124,6 @@ service.interceptors.request.use(config => {
|
|
const hasSp = item.b.find(k => curPath.indexOf(k)>=0)
|
|
const hasSp = item.b.find(k => curPath.indexOf(k)>=0)
|
|
return hasSp
|
|
return hasSp
|
|
})
|
|
})
|
|
- console.log(hasPath)
|
|
|
|
if(hasPath){
|
|
if(hasPath){
|
|
config.headers['biz-updatedate'] = hasPath.timeStr
|
|
config.headers['biz-updatedate'] = hasPath.timeStr
|
|
}
|
|
}
|
|
@@ -132,9 +131,11 @@ service.interceptors.request.use(config => {
|
|
|
|
|
|
// 当前页面路径
|
|
// 当前页面路径
|
|
const currentPage = router.history.current
|
|
const currentPage = router.history.current
|
|
|
|
+ console.log(currentPage)
|
|
if(currentPage&¤tPage.meta&&config.headers['module']){
|
|
if(currentPage&¤tPage.meta&&config.headers['module']){
|
|
config.headers['module'] = encodeURIComponent(currentPage.meta.title||'') + ',' +config.headers['module']
|
|
config.headers['module'] = encodeURIComponent(currentPage.meta.title||'') + ',' +config.headers['module']
|
|
}
|
|
}
|
|
|
|
+ console.log(config.url)
|
|
console.log(decodeURIComponent(config.headers['module']))
|
|
console.log(decodeURIComponent(config.headers['module']))
|
|
|
|
|
|
config.headers['auth-price'] = authPrice.join(',') // 价格权限
|
|
config.headers['auth-price'] = authPrice.join(',') // 价格权限
|