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