mirror of
https://github.com/PlayEdu/frontend.git
synced 2025-12-23 18:59:44 +08:00
课程详情初步
This commit is contained in:
@@ -32,6 +32,7 @@ const Init = lazy(async () => {
|
||||
// 懒加载
|
||||
const LoginPage = lazy(() => import("../pages/login"));
|
||||
const IndexPage = lazy(() => import("../pages/index"));
|
||||
const CoursePage = lazy(() => import("../pages/course"));
|
||||
|
||||
const routes: RouteObject[] = [
|
||||
{
|
||||
@@ -46,6 +47,10 @@ const routes: RouteObject[] = [
|
||||
path: "/login",
|
||||
element: <LoginPage />,
|
||||
},
|
||||
{
|
||||
path: "/course/:courseId",
|
||||
element: <CoursePage />,
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user