|
|
@@ -11,12 +11,13 @@ import { ClassroomPage } from './pages/ClassroomPage';
|
|
|
// import { DateNotesPage } from './pages/DateNotesPage';
|
|
|
import { LoginPage } from './pages/Login';
|
|
|
import StockHomePage from './pages/StockHomePage';
|
|
|
+import { XunlianPage } from './pages/XunlianPage';
|
|
|
|
|
|
export const router = createBrowserRouter([
|
|
|
- {
|
|
|
- path: '/',
|
|
|
- element: <Navigate to="/mobile" replace />
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // path: '/',
|
|
|
+ // element: <Navigate to="/mobile" replace />
|
|
|
+ // },
|
|
|
{
|
|
|
path: '/mobile/login',
|
|
|
element: <LoginPage />
|
|
|
@@ -29,31 +30,6 @@ export const router = createBrowserRouter([
|
|
|
</ProtectedRoute>
|
|
|
),
|
|
|
children: [
|
|
|
- {
|
|
|
- path: 'classroom',
|
|
|
- element: <ClassroomPage />,
|
|
|
- errorElement: <ErrorPage />
|
|
|
- },
|
|
|
- // {
|
|
|
- // path: 'submission-records',
|
|
|
- // element: <SubmissionRecordsPage />,
|
|
|
- // errorElement: <ErrorPage />
|
|
|
- // },
|
|
|
- // {
|
|
|
- // path: 'stock-data',
|
|
|
- // element: <StockDataPage />,
|
|
|
- // errorElement: <ErrorPage />
|
|
|
- // },
|
|
|
- // {
|
|
|
- // path: 'stock-xunlian-codes',
|
|
|
- // element: <StockXunlianCodesPage />,
|
|
|
- // errorElement: <ErrorPage />
|
|
|
- // },
|
|
|
- // {
|
|
|
- // path: 'date-notes',
|
|
|
- // element: <DateNotesPage />,
|
|
|
- // errorElement: <ErrorPage />
|
|
|
- // },
|
|
|
{
|
|
|
path: '*',
|
|
|
element: <NotFoundPage />,
|
|
|
@@ -61,6 +37,22 @@ export const router = createBrowserRouter([
|
|
|
},
|
|
|
],
|
|
|
},
|
|
|
+ {
|
|
|
+ path: '/mobile/classroom',
|
|
|
+ element: (
|
|
|
+ <ProtectedRoute>
|
|
|
+ <ClassroomPage />
|
|
|
+ </ProtectedRoute>
|
|
|
+ ),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/mobile/xunlian',
|
|
|
+ element: (
|
|
|
+ <ProtectedRoute>
|
|
|
+ <XunlianPage />
|
|
|
+ </ProtectedRoute>
|
|
|
+ ),
|
|
|
+ },
|
|
|
{
|
|
|
path: '*',
|
|
|
element: <NotFoundPage />,
|