完成主页, 作品页,作品编辑页
> 未对接后端接口

Change-Id: I5d62663602656da4940707e00f76bfe09d824c2c
diff --git a/src/routes/routes.ts b/src/routes/routes.ts
index d380bde..eeebbe0 100644
--- a/src/routes/routes.ts
+++ b/src/routes/routes.ts
@@ -12,17 +12,13 @@
 import CreateWork from "../feature/work/CreateWork";
 
 import UserHome from "../feature/user/UserHome";
+// import Tmp from "../feature/home/tmp";
 
 // 创建受保护的组件
 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';
-
+const ProtectedUserHome = withProtect(UserHome)
 export default createBrowserRouter([
   {
     path: "/",
@@ -32,14 +28,9 @@
         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, },
       {
         path: "user",
-        Component: UserHome,
+        Component: ProtectedUserHome,
       },
       {
         Component: AuthLayout,
@@ -56,7 +47,11 @@
       {
         path:"/work/creat",
         Component: ProtectedCreatWork
-      }
+      },
+      // {
+      //   path:"/tmp",
+      //   Component: Tmp
+      // }
     ],
   },
 ]);
\ No newline at end of file