This commit is contained in:
lcw
2025-11-28 22:25:58 +08:00
parent 85f1f3a6f7
commit e2a54c16eb
90 changed files with 2451 additions and 511 deletions

View File

@ -5,19 +5,19 @@ import { getItem } from '@/utils/storage'
*/
const getChildrenRoutes = (routes) => {
const result = [];
const { deptBizType, deptLevel } = getItem('deptId')[0]
// const { deptBizType, deptLevel } = getItem('deptId')[0]
routes.forEach((route) => {
if (route.children && route.children.length > 0) {
if (deptBizType == '23') {
result.push(...route.children);
} else {
if (route.path == '/HumanIntelligence') {
route.children.splice(0, 1);
result.push(...route.children);
} else {
result.push(...route.children);
}
}
// if (deptBizType == '23') {
result.push(...route.children);
// } else {
// if (route.path == '/HumanIntelligence') {
// route.children.splice(0, 1);
// result.push(...route.children);
// } else {
// result.push(...route.children);
// }
// }
}
});
console.log(result);