课程详情增加课件下载

This commit is contained in:
unknown
2023-07-29 16:20:01 +08:00
parent 6137916964
commit 765f37a5eb
8 changed files with 340 additions and 82 deletions

View File

@@ -17,6 +17,8 @@ const CoursePage = lazy(() => import("../pages/course/index"));
const CoursePlayPage = lazy(() => import("../pages/course/video"));
//最近学习
const LatestLearnPage = lazy(() => import("../pages/latest-learn"));
//错误页面
const ErrorPage = lazy(() => import("../pages/error"));
import PrivateRoute from "../compenents/private-route";
@@ -96,6 +98,14 @@ const routes: RouteObject[] = [
path: "/course/:courseId/hour/:hourId",
element: <PrivateRoute Component={<CoursePlayPage />} />,
},
{
path: "/error",
element: <ErrorPage />,
},
{
path: "*",
element: <ErrorPage />,
},
],
},
],