2
0
Эх сурвалжийг харах

修改path 支持 path: '/mobile/classroom/:id?/:role?'

yourname 7 сар өмнө
parent
commit
6c603b20ba

+ 1 - 6
client/mobile/mobile_app.tsx

@@ -254,12 +254,7 @@ const App = () => {
       errorElement: <ErrorPage />
     },
     {
-      path: '/mobile/classroom',
-      element: <ClassroomPage />,
-      errorElement: <ErrorPage />
-    },
-    {
-      path: '/mobile/classroom/:id/:role?',
+      path: '/mobile/classroom/:id?/:role?',
       element: <ClassroomPage />,
       errorElement: <ErrorPage />
     },