From 951f69a53cc38fa76312129300fffd4a3c9ff8af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A6=BA=E7=8B=A8?= <18119604035@163.com> Date: Mon, 27 Mar 2023 15:45:07 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=86=E9=A2=91=E6=92=AD=E6=94=BE=E4=BB=A5?= =?UTF-8?q?=E5=8F=8A=E6=92=AD=E6=94=BE=E8=AE=B0=E5=BD=95=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/latest-learn/index.tsx | 7 ++++++- src/routes/index.tsx | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/pages/latest-learn/index.tsx b/src/pages/latest-learn/index.tsx index 062279b..a83a007 100644 --- a/src/pages/latest-learn/index.tsx +++ b/src/pages/latest-learn/index.tsx @@ -1,2 +1,7 @@ - import styles from "./index.module.scss"; + +const LatestLearnPage = () => { + return <>最近学习; +}; + +export default LatestLearnPage; diff --git a/src/routes/index.tsx b/src/routes/index.tsx index 095aace..f74fcf8 100644 --- a/src/routes/index.tsx +++ b/src/routes/index.tsx @@ -33,6 +33,7 @@ const Init = lazy(async () => { const LoginPage = lazy(() => import("../pages/login")); const IndexPage = lazy(() => import("../pages/index")); const CoursePage = lazy(() => import("../pages/course")); +const LatestLearnPage = lazy(() => import("../pages/latest-learn")); const routes: RouteObject[] = [ { @@ -51,6 +52,10 @@ const routes: RouteObject[] = [ path: "/course/:courseId", element: , }, + { + path: "/latest-learn", + element: , + }, ], }, ];