|
@@ -286,7 +286,8 @@ export function getAuthPriceCode (config, router, store) {
|
|
|
|
|
|
|
|
|
|
const authNode = treeFind(authTree,(item)=>item.code == authCode)
|
|
const authNode = treeFind(authTree,(item)=>item.code == authCode)
|
|
-
|
|
+
|
|
|
|
+ if(!authNode){return []}
|
|
if(!authNode.permission){return []}
|
|
if(!authNode.permission){return []}
|
|
|
|
|
|
const hasReqUrl = authNode.permission.split(',').find(item => url.replace(/\//g,'_').indexOf(item)>=0)
|
|
const hasReqUrl = authNode.permission.split(',').find(item => url.replace(/\//g,'_').indexOf(item)>=0)
|