visuddhinanda 1 месяц назад
Родитель
Сommit
c61e5145e5
1 измененных файлов с 20 добавлено и 0 удалено
  1. 20 0
      dashboard-v6/src/Router.tsx

+ 20 - 0
dashboard-v6/src/Router.tsx

@@ -10,6 +10,7 @@ const Home = lazy(() => import("./pages/home"));
 const RootLayout = lazy(() => import("./layouts/Root"));
 const AnonymousLayout = lazy(() => import("./layouts/anonymous"));
 const DashboardLayout = lazy(() => import("./layouts/dashboard"));
+const WorkspaceLayout = lazy(() => import("./layouts/workspace"));
 
 const router = createBrowserRouter(
   [
@@ -34,6 +35,25 @@ const router = createBrowserRouter(
             },
           ],
         },
+        {
+          path: "workspace",
+          Component: WorkspaceLayout,
+          children: [
+            { index: true, Component: WorkspaceLayout },
+            {
+              path: "home",
+              Component: UsersPersonal,
+            },
+            {
+              path: "ai",
+              Component: UsersPersonal,
+            },
+            {
+              path: "tipitaka",
+              Component: UsersPersonal,
+            },
+          ],
+        },
       ],
     },
   ],