瀏覽代碼

修改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 />
     },