2
0
Переглянути джерело

🔧 chore(routes): update route paths from /mobile to /live

- modify root path redirect from "/mobile" to "/live"
- update all route paths from "/mobile/*" to "/live/*" for consistency
- adjust login, register and main layout routes to use new /live prefix
- update classroom, xunlian, stock and exam related routes to new path structure

📝 docs(commands): rename command documentation file

- rename "command-安装启动Roo工具.md" to "command-安装启动工具.md" for concise filename
yourname 6 місяців тому
батько
коміт
900ad9560f
2 змінених файлів з 11 додано та 11 видалено
  1. 0 0
      .roo/commands/command-创建新指令.md
  2. 11 11
      src/client/live/routes.tsx

+ 0 - 0
.roo/commands/command-创建新Roo指令.md → .roo/commands/command-创建新指令.md


+ 11 - 11
src/client/live/routes.tsx

@@ -23,18 +23,18 @@ import { MainLayout } from './layouts/MainLayout';
 export const router = createBrowserRouter([
   {
     path: '/',
-    element: <Navigate to="/mobile" replace />
+    element: <Navigate to="/live" replace />
   },
   {
-    path: '/mobile/login',
+    path: '/live/login',
     element: <LoginPage />
   },
   {
-    path: '/mobile/register',
+    path: '/live/register',
     element: <RegisterPage />
   },
   {
-    path: '/mobile',
+    path: '/live',
     element: (
       <ProtectedRoute>
         <MainLayout />
@@ -57,7 +57,7 @@ export const router = createBrowserRouter([
     ],
   },
   // {
-  //   path: '/mobile/classroom',
+  //   path: '/live/classroom',
   //   element: (
   //     <ProtectedRoute>
   //       <ClassroomPage />
@@ -65,7 +65,7 @@ export const router = createBrowserRouter([
   //   ),
   // },
   {
-    path: '/mobile/xunlian',
+    path: '/live/xunlian',
     element: (
       <ProtectedRoute>
         <XunlianPage />
@@ -73,27 +73,27 @@ export const router = createBrowserRouter([
     ),
   },
   {
-    path: '/mobile/classroom/:id?/:role?',
+    path: '/live/classroom/:id?/:role?',
     element: <ProtectedRoute><ClassroomPage /></ProtectedRoute>,
     errorElement: <ErrorPage />
   },
   {
-    path: '/mobile/stock',
+    path: '/live/stock',
     element: <ProtectedRoute><StockMain /></ProtectedRoute>,
     errorElement: <ErrorPage />
   },
   {
-    path: '/mobile/exam/card',
+    path: '/live/exam/card',
     element: <ProtectedRoute><ExamCard /></ProtectedRoute>,
     errorElement: <ErrorPage />
   },
   {
-    path: '/mobile/exam/:id',
+    path: '/live/exam/:id',
     element: <ProtectedRoute><ExamAdmin /></ProtectedRoute>,
     errorElement: <ErrorPage />
   },
   {
-    path: '/mobile/exam',
+    path: '/live/exam',
     element: <ProtectedRoute><ExamIndex /></ProtectedRoute>,
     errorElement: <ErrorPage />
   },