|
@@ -53,6 +53,34 @@ export const router = createBrowserRouter([
|
|
|
path: 'member',
|
|
path: 'member',
|
|
|
element: <MemberPage />
|
|
element: <MemberPage />
|
|
|
},
|
|
},
|
|
|
|
|
+ {
|
|
|
|
|
+ path: 'classroom/:classId/:role',
|
|
|
|
|
+ element: <ProtectedRoute><ClassroomPage /></ProtectedRoute>,
|
|
|
|
|
+ errorElement: <ErrorPage />
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ path: 'classroom/:role',
|
|
|
|
|
+ element: <ProtectedRoute><ClassroomPage /></ProtectedRoute>,
|
|
|
|
|
+ errorElement: <ErrorPage />
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ path: 'classroom',
|
|
|
|
|
+ element: <ProtectedRoute><ClassroomPage /></ProtectedRoute>,
|
|
|
|
|
+ errorElement: <ErrorPage />
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ path: 'stock',
|
|
|
|
|
+ element: <ProtectedRoute><StockMain /></ProtectedRoute>,
|
|
|
|
|
+ errorElement: <ErrorPage />
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ path: 'xunlian',
|
|
|
|
|
+ element: (
|
|
|
|
|
+ <ProtectedRoute>
|
|
|
|
|
+ <XunlianPage />
|
|
|
|
|
+ </ProtectedRoute>
|
|
|
|
|
+ ),
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
path: '*',
|
|
path: '*',
|
|
|
element: <NotFoundPage />,
|
|
element: <NotFoundPage />,
|
|
@@ -68,34 +96,6 @@ export const router = createBrowserRouter([
|
|
|
// </ProtectedRoute>
|
|
// </ProtectedRoute>
|
|
|
// ),
|
|
// ),
|
|
|
// },
|
|
// },
|
|
|
- {
|
|
|
|
|
- path: '/mobile/xunlian',
|
|
|
|
|
- element: (
|
|
|
|
|
- <ProtectedRoute>
|
|
|
|
|
- <XunlianPage />
|
|
|
|
|
- </ProtectedRoute>
|
|
|
|
|
- ),
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- path: '/mobile/classroom/:classId/:role',
|
|
|
|
|
- element: <ProtectedRoute><ClassroomPage /></ProtectedRoute>,
|
|
|
|
|
- errorElement: <ErrorPage />
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- path: '/mobile/classroom/:role',
|
|
|
|
|
- element: <ProtectedRoute><ClassroomPage /></ProtectedRoute>,
|
|
|
|
|
- errorElement: <ErrorPage />
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- path: '/mobile/classroom',
|
|
|
|
|
- element: <ProtectedRoute><ClassroomPage /></ProtectedRoute>,
|
|
|
|
|
- errorElement: <ErrorPage />
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- path: '/mobile/stock',
|
|
|
|
|
- element: <ProtectedRoute><StockMain /></ProtectedRoute>,
|
|
|
|
|
- errorElement: <ErrorPage />
|
|
|
|
|
- },
|
|
|
|
|
{
|
|
{
|
|
|
path: '/mobile/exam/card',
|
|
path: '/mobile/exam/card',
|
|
|
element: <ProtectedRoute><ExamCard /></ProtectedRoute>,
|
|
element: <ProtectedRoute><ExamCard /></ProtectedRoute>,
|