userAuth.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /** When your routing table is too long, you can split it into small modules **/
  2. import Layout from "@/layout";
  3. const userAuthRouter = {
  4. path: "/auth",
  5. component: Layout,
  6. redirect: "/auth/user",
  7. name: "permissions",
  8. meta: { title: "权限管理", icon: "el-icon-user-solid" },
  9. children: [
  10. {
  11. path: "user",
  12. component: () => import("@/views/auth/user/index"),
  13. name: "userIndex",
  14. meta: { title: "用户列表", icon: "" }
  15. },
  16. {
  17. path: "changePassword",
  18. component: () => import("@/views/auth/user/changePassword"),
  19. name: "changePassword",
  20. meta: { title: "修改密码", icon: "" }
  21. },
  22. {
  23. path: "orgGroup",
  24. component: () => import("@/views/auth/org/orgGroupIndex"),
  25. name: "orgGroupIndex",
  26. meta: { title: "组织角色" }
  27. },
  28. {
  29. path: "org",
  30. component: () => import("@/views/auth/org/orgIndex"),
  31. name: "orgIndex",
  32. meta: { title: "组织管理" }
  33. },
  34. {
  35. path: "position",
  36. component: () => import("@/views/auth/position/index"),
  37. name: "positionIndex",
  38. meta: { title: "职位管理" }
  39. },
  40. {
  41. path: "role",
  42. component: () => import("@/views/auth/role/roleIndex"),
  43. name: "roleIndex",
  44. meta: { title: "角色管理" }
  45. },
  46. {
  47. path: "res",
  48. component: () => import("@/views/auth/res/resIndex"),
  49. name: "resIndex",
  50. meta: { title: "资源管理" }
  51. }
  52. ]
  53. };
  54. export default userAuthRouter;