chuzhixin 4 سال پیش
والد
کامیت
ffd2770570
1فایلهای تغییر یافته به همراه31 افزوده شده و 30 حذف شده
  1. 31 30
      src/router/index.js

+ 31 - 30
src/router/index.js

@@ -86,36 +86,7 @@ export const asyncRoutes = [
       },
     ],
   }, */
-  {
-    path: "/personnelManagement",
-    component: Layout,
-    redirect: "noRedirect",
-    name: "PersonnelManagement",
-    meta: { title: "配置", icon: "users-cog", permissions: ["admin"] },
-    children: [
-      {
-        path: "userManagement",
-        name: "UserManagement",
-        component: () =>
-          import("@/views/personnelManagement/userManagement/index"),
-        meta: { title: "用户管理" },
-      },
-      {
-        path: "roleManagement",
-        name: "RoleManagement",
-        component: () =>
-          import("@/views/personnelManagement/roleManagement/index"),
-        meta: { title: "角色管理" },
-      },
-      {
-        path: "menuManagement",
-        name: "MenuManagement",
-        component: () =>
-          import("@/views/personnelManagement/menuManagement/index"),
-        meta: { title: "菜单管理", badge: "New" },
-      },
-    ],
-  },
+
   {
     path: "/vab",
     component: Layout,
@@ -366,6 +337,36 @@ export const asyncRoutes = [
     ],
   },
   {
+    path: "/personnelManagement",
+    component: Layout,
+    redirect: "noRedirect",
+    name: "PersonnelManagement",
+    meta: { title: "配置", icon: "users-cog", permissions: ["admin"] },
+    children: [
+      {
+        path: "userManagement",
+        name: "UserManagement",
+        component: () =>
+          import("@/views/personnelManagement/userManagement/index"),
+        meta: { title: "用户管理" },
+      },
+      {
+        path: "roleManagement",
+        name: "RoleManagement",
+        component: () =>
+          import("@/views/personnelManagement/roleManagement/index"),
+        meta: { title: "角色管理" },
+      },
+      {
+        path: "menuManagement",
+        name: "MenuManagement",
+        component: () =>
+          import("@/views/personnelManagement/menuManagement/index"),
+        meta: { title: "菜单管理", badge: "New" },
+      },
+    ],
+  },
+  {
     path: "/mall",
     component: Layout,
     redirect: "noRedirect",