lcw
This commit is contained in:
@ -13,6 +13,13 @@ const getChildrenRoutes = (routes) => {
|
||||
// 在这个条件分支中也需要过滤掉/internalAuditor路由
|
||||
result.push(...route.children);
|
||||
} else {
|
||||
if (route.path == '/HumanIntelligence') {
|
||||
route.children.splice(route.children.findIndex(item => item.path == '/auditList'), 1)
|
||||
result.push(...route.children);
|
||||
} else {
|
||||
result.push(...route.children);
|
||||
}
|
||||
|
||||
if (route.path == '/JudgmentHome') {
|
||||
route.children.splice(route.children.findIndex(item => item.path == '/internalAuditor'), 1)
|
||||
result.push(...route.children);
|
||||
@ -37,9 +44,7 @@ export const filterRoutes = (routes) => {
|
||||
return !childrenRoutes.find((childrenRoute) => {
|
||||
return childrenRoute.path === route.path;
|
||||
});
|
||||
}).filter(item => item.path != '/internalAuditor')
|
||||
console.log(childrenRoutes);
|
||||
|
||||
}).filter(item => item.path != '/internalAuditor' && item.path != '/auditList')
|
||||
return data
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user