sys.js 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. var routers = [
  2. {
  3. path: '/sys/user/list',
  4. name: 'sys-user-list',
  5. // route level code-splitting
  6. // this generates a separate chunk (about.[hash].js) for this route
  7. // which is lazy-loaded when the route is visited.
  8. component: () => import('@/views/sys/user-list.vue'),
  9. meta: {
  10. roles: ["admin"]
  11. }
  12. },
  13. {
  14. path: '/sys/role/list',
  15. name: 'sys-role-list',
  16. // route level code-splitting
  17. // this generates a separate chunk (about.[hash].js) for this route
  18. // which is lazy-loaded when the route is visited.
  19. component: () => import('@/views/sys/role-list.vue'),
  20. meta: {
  21. roles: ["admin"]
  22. }
  23. },
  24. {
  25. path: '/sys/menu/list',
  26. name: 'sys-menu-list',
  27. // route level code-splitting
  28. // this generates a separate chunk (about.[hash].js) for this route
  29. // which is lazy-loaded when the route is visited.
  30. component: () => import('@/views/sys/menu-list.vue'),
  31. meta: {
  32. roles: ["admin"]
  33. }
  34. },
  35. {
  36. path: '/sys/permission/list',
  37. name: 'sys-permission-list',
  38. // route level code-splitting
  39. // this generates a separate chunk (about.[hash].js) for this route
  40. // which is lazy-loaded when the route is visited.
  41. component: () => import('@/views/sys/permission-list.vue'),
  42. meta: {
  43. roles: ["admin"]
  44. }
  45. },
  46. {
  47. path: '/sys/dataDictionary/list',
  48. name: 'sys-dataDictionary-list',
  49. // route level code-splitting
  50. // this generates a separate chunk (about.[hash].js) for this route
  51. // which is lazy-loaded when the route is visited.
  52. component: () => import('@/views/sys/dataDictionary-list.vue'),
  53. meta: {
  54. roles: ["admin"]
  55. }
  56. }
  57. ]
  58. export default routers;