This commit is contained in:
ditiqi 2025-03-02 17:45:05 +08:00
parent 2f023de253
commit 9034e61229
1 changed files with 7 additions and 4 deletions

View File

@ -24,6 +24,7 @@ import MyLearningPage from "../app/main/my-learning/page";
import MyDutyPage from "../app/main/my-duty/page";
import MyPathPage from "../app/main/my-path/page";
import SearchPage from "../app/main/search/page";
import MyDutyPathPage from "../app/main/my-duty-path/page";
interface CustomIndexRouteObject extends IndexRouteObject {
name?: string;
breadcrumb?: string;
@ -70,9 +71,11 @@ export const routes: CustomRouteObject[] = [
},
{
path: "editor/:id?",
element: <WithAuth>
element: (
<WithAuth>
<PathEditorPage></PathEditorPage>
</WithAuth>,
</WithAuth>
),
},
],
},
@ -92,7 +95,7 @@ export const routes: CustomRouteObject[] = [
path: "my-duty-path",
element: (
<WithAuth>
<MyPathPage></MyPathPage>
<MyDutyPathPage></MyDutyPathPage>
</WithAuth>
),
},