This commit is contained in:
lcw
2026-01-23 15:43:22 +08:00
parent 47a7081963
commit 5b62d707ff
76 changed files with 3333 additions and 880 deletions

View File

@ -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
};