|
@@ -286,7 +286,8 @@ export function getAuthPriceCode (config, router, store) {
|
|
|
|
|
|
// 从所有的权限菜单中查找当前权限code对应的权限菜单数据
|
|
|
const authNode = treeFind(authTree,(item)=>item.code == authCode)
|
|
|
- // console.log(authNode)
|
|
|
+ // console.log(authNode,authCode)
|
|
|
+ if(!authNode){return []}
|
|
|
if(!authNode.permission){return []}
|
|
|
// 从找到的对应权限菜单数据中判断当前调用接口的url是否存在,这里和权限菜单中的后台权限code比较
|
|
|
const hasReqUrl = authNode.permission.split(',').find(item => url.replace(/\//g,'_').indexOf(item)>=0)
|