课程详情初步

This commit is contained in:
禺狨
2023-03-24 17:45:47 +08:00
parent b24e4e09b1
commit 351e755fe2
13 changed files with 438 additions and 11 deletions

View File

@@ -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 />,
},
],
},
];