Yansen 2 年 前
コミット
fe9729883a
共有1 個のファイルを変更した44 個の追加14 個の削除を含む
  1. 44
    14
      src/routes/routes.jsx

+ 44
- 14
src/routes/routes.jsx ファイルの表示

@@ -35,23 +35,53 @@ export const authRoutes = [
35 35
     element: <Index />,
36 36
   },
37 37
   {
38
-    path: "form",
39
-    element: <BasicForm />,
38
+    path: "system",
39
+    element: <PageContainer />,
40 40
     meta: {
41
-      title: '表单',
42
-      icon: <AppstoreOutlined />,
43
-      permission: 'form',
44
-    },
45
-  },
46
-  {
47
-    path: "table",
48
-    element: <BasicTable />,
49
-    meta: {
50
-      title: '表格',
51
-      icon: <ContainerOutlined />,
52
-      permission: 'table',
41
+      title: '系统管理',
42
+      // icon: <AppstoreOutlined />,
43
+      // permission: 'form',
53 44
     },
45
+    children: [
46
+      {
47
+        path: "user",
48
+        element: <Index />,
49
+        meta: {
50
+          title: '人员管理',
51
+          // icon: <AppstoreOutlined />,
52
+          // permission: 'form',
53
+        },
54
+      },
55
+      {
56
+        path: "role",
57
+        element: <Index />,
58
+        meta: {
59
+          title: '角色管理',
60
+          // icon: <AppstoreOutlined />,
61
+          // permission: 'form',
62
+        },
63
+      },
64
+    ]
54 65
   },
66
+
67
+  // {
68
+  //   path: "form",
69
+  //   element: <BasicForm />,
70
+  //   meta: {
71
+  //     title: '表单',
72
+  //     icon: <AppstoreOutlined />,
73
+  //     permission: 'form',
74
+  //   },
75
+  // },
76
+  // {
77
+  //   path: "table",
78
+  //   element: <BasicTable />,
79
+  //   meta: {
80
+  //     title: '表格',
81
+  //     icon: <ContainerOutlined />,
82
+  //     permission: 'table',
83
+  //   },
84
+  // },
55 85
 ];
56 86
 
57 87
 export const defaultRoutes = [