帖子分类
Change-Id: I17bafbfe3c1c8fd26c1e12499cb3c17cd1738e23
diff --git a/src/route/index.tsx b/src/route/index.tsx
index c56ada3..93e6cf9 100644
--- a/src/route/index.tsx
+++ b/src/route/index.tsx
@@ -6,6 +6,8 @@
import React from 'react'
import Forum from '../views/forum'
import { RootState } from '@/store'
+import PostList from '../views/postList/postList'
+import PostDetail from '../views/postDetail/postDetail'
const router = createBrowserRouter([
{
@@ -24,6 +26,14 @@
element:<Forum/>
},
+ {
+ path: '/posts',
+ element: <PostList/>
+ },
+ {
+ path: '/postsDetail',
+ element: <PostDetail/>
+ }
]
},
]