update path

This commit is contained in:
nwpptrs 2024-11-18 10:13:04 +07:00
parent 4389e7d435
commit 0df66f1009
40 changed files with 334 additions and 485 deletions

View file

@ -11,7 +11,17 @@ 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((child: any) => {
if (child.children) {
mergeManual.push(...child.children);
} else {
mergeManual.push(child);
}
});
}
});
const manualRoute = mergeManual.map(
(v): { path: string; name: string; component: Function } => {