Revert "update path"

This reverts commit 0df66f1009.
This commit is contained in:
nwpptrs 2024-11-18 10:14:53 +07:00
parent 0df66f1009
commit eba51ba89e
40 changed files with 485 additions and 334 deletions

View file

@ -11,17 +11,7 @@ const manual = data.filter((v: any) => v.children);
const mergeManual: any[] = [];
manual.forEach((v: any) => {
if (v.children) {
v.children.forEach((child: any) => {
if (child.children) {
mergeManual.push(...child.children);
} else {
mergeManual.push(child);
}
});
}
});
manual.forEach((v: any) => mergeManual.push(...v.children));
const manualRoute = mergeManual.map(
(v): { path: string; name: string; component: Function } => {