สรรหา
This commit is contained in:
parent
b7a72445bc
commit
f2ff047c38
137 changed files with 778 additions and 757 deletions
|
|
@ -11,7 +11,23 @@ const manual = data.filter((v: any) => v.children);
|
|||
|
||||
const mergeManual: any[] = [];
|
||||
|
||||
manual.forEach((v: any) => mergeManual.push(...v.children));
|
||||
manual.forEach((v: any) => {
|
||||
if (v.children) {
|
||||
v.children.forEach((i: any) => {
|
||||
if (i.children) {
|
||||
i.children.forEach((item: any) => {
|
||||
if (item.children) {
|
||||
mergeManual.push(...item.children);
|
||||
} else {
|
||||
mergeManual.push(item);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
mergeManual.push(i);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
const manualRoute = mergeManual.map(
|
||||
(v): { path: string; name: string; component: Function } => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue