视频播放以及播放记录上传优化

This commit is contained in:
禺狨 2023-03-27 15:45:07 +08:00
parent 6c6b18b76c
commit 951f69a53c
2 changed files with 11 additions and 1 deletions

View File

@ -1,2 +1,7 @@
import styles from "./index.module.scss"; import styles from "./index.module.scss";
const LatestLearnPage = () => {
return <></>;
};
export default LatestLearnPage;

View File

@ -33,6 +33,7 @@ const Init = lazy(async () => {
const LoginPage = lazy(() => import("../pages/login")); const LoginPage = lazy(() => import("../pages/login"));
const IndexPage = lazy(() => import("../pages/index")); const IndexPage = lazy(() => import("../pages/index"));
const CoursePage = lazy(() => import("../pages/course")); const CoursePage = lazy(() => import("../pages/course"));
const LatestLearnPage = lazy(() => import("../pages/latest-learn"));
const routes: RouteObject[] = [ const routes: RouteObject[] = [
{ {
@ -51,6 +52,10 @@ const routes: RouteObject[] = [
path: "/course/:courseId", path: "/course/:courseId",
element: <CoursePage />, element: <CoursePage />,
}, },
{
path: "/latest-learn",
element: <LatestLearnPage />,
},
], ],
}, },
]; ];