add
This commit is contained in:
parent
a0912fee02
commit
408709a6a3
|
@ -22,6 +22,8 @@ import PathEditorPage from "../app/main/path/editor/page";
|
||||||
import { CoursePreview } from "../app/main/course/preview/page";
|
import { CoursePreview } from "../app/main/course/preview/page";
|
||||||
import MyLearningPage from "../app/main/my-learning/page";
|
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 SearchPage from "../app/main/search/page";
|
||||||
interface CustomIndexRouteObject extends IndexRouteObject {
|
interface CustomIndexRouteObject extends IndexRouteObject {
|
||||||
name?: string;
|
name?: string;
|
||||||
breadcrumb?: string;
|
breadcrumb?: string;
|
||||||
|
@ -76,6 +78,14 @@ export const routes: CustomRouteObject[] = [
|
||||||
path: "courses",
|
path: "courses",
|
||||||
element: <CoursesPage></CoursesPage>,
|
element: <CoursesPage></CoursesPage>,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: "my-path",
|
||||||
|
element: (
|
||||||
|
<WithAuth>
|
||||||
|
<MyPathPage></MyPathPage>
|
||||||
|
</WithAuth>
|
||||||
|
),
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: "my-duty",
|
path: "my-duty",
|
||||||
element: (
|
element: (
|
||||||
|
@ -92,6 +102,10 @@ export const routes: CustomRouteObject[] = [
|
||||||
</WithAuth>
|
</WithAuth>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: "search",
|
||||||
|
element: <SearchPage></SearchPage>,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: "course/:id?/detail/:lectureId?", // 使用 ? 表示 id 参数是可选的
|
path: "course/:id?/detail/:lectureId?", // 使用 ? 表示 id 参数是可选的
|
||||||
element: <CourseDetailPage />,
|
element: <CourseDetailPage />,
|
||||||
|
|
Loading…
Reference in New Issue