소스 검색

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

yourname 7 달 전
부모
커밋
6c603b20ba
1개의 변경된 파일1개의 추가작업 그리고 6개의 파일을 삭제
  1. 1 6
      client/mobile/mobile_app.tsx

+ 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 />
     },