保存本地对routes.ts的修改
Change-Id: I4f4dbd8069893d7363e251130791dc0594be44e1
diff --git a/src/routes/routes.ts b/src/routes/routes.ts
index 3bb3135..401b6bb 100644
--- a/src/routes/routes.ts
+++ b/src/routes/routes.ts
@@ -15,6 +15,12 @@
const ProtectedHome = withProtect(Home);
const ProtectedWork = withProtect(Work);
const ProtectedCreatWork = withProtect(CreateWork)
+import FilmCategory from '../feature/categories/MovieCategory';
+import MusicCategory from '../feature/categories/MusicCategory';
+import GameCategory from '../feature/categories/GameCategory';
+import OtherCategory from '../feature/categories/OtherCategory';
+import WorkPage from '../feature/work/WorkPage';
+
export default createBrowserRouter([
{
path: "/",
@@ -24,6 +30,11 @@
path: "/",
Component: ProtectedHome,
},
+ {path: 'categories/film', Component: FilmCategory,},
+ {path: 'categories/music', Component: MusicCategory,},
+ {path: 'categories/game', Component: GameCategory,},
+ {path: 'categories/other', Component: OtherCategory,},
+ {path: '/works/:id', Component: WorkPage, },
{
Component: AuthLayout,
children: [