index.js 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. import Layout from '@/sheep/layouts/index.vue';
  2. import Content from '@/sheep/layouts/content.vue';
  3. export default {
  4. path: '/admin',
  5. name: 'admin',
  6. component: Layout,
  7. meta: {
  8. title: '后台管理',
  9. },
  10. children: [
  11. {
  12. path: 'profile',
  13. name: 'admin.profile',
  14. component: () => import('@/app/admin/views/index/profile/index.vue'),
  15. meta: {
  16. title: '个人信息',
  17. },
  18. },
  19. {
  20. path: 'auth',
  21. name: 'admin.auth',
  22. component: Content,
  23. meta: {
  24. title: '权限设置',
  25. },
  26. children: [
  27. {
  28. path: 'admin',
  29. name: 'admin.auth.admin',
  30. component: () => import('@/app/admin/views/auth/admin/index.vue'),
  31. meta: {
  32. title: '管理员',
  33. },
  34. },
  35. {
  36. path: 'role',
  37. name: 'admin.auth.role',
  38. component: () => import('@/app/admin/views/auth/role/index.vue'),
  39. meta: {
  40. title: '管理组',
  41. },
  42. },
  43. {
  44. path: 'access',
  45. name: 'admin.auth.access',
  46. component: () => import('@/app/admin/views/auth/access/index.vue'),
  47. meta: {
  48. title: '菜单权限',
  49. },
  50. },
  51. {
  52. path: 'adminlog',
  53. name: 'admin.auth.adminlog',
  54. component: () => import('@/app/admin/views/auth/adminLog/index.vue'),
  55. meta: {
  56. title: '操作记录',
  57. },
  58. },
  59. ],
  60. },
  61. {
  62. path: 'config',
  63. name: 'admin.config',
  64. component: Content,
  65. meta: {
  66. title: '系统设置',
  67. },
  68. children: [
  69. {
  70. path: 'basic',
  71. name: 'admin.config.basic',
  72. component: () => import('@/app/admin/views/config/basic.vue'),
  73. meta: {
  74. title: '系统信息',
  75. },
  76. },
  77. {
  78. path: 'easysms',
  79. name: 'admin.config.easysms',
  80. component: () => import('@/app/admin/views/config/easysms.vue'),
  81. meta: {
  82. title: '短信配置',
  83. },
  84. },
  85. ],
  86. },
  87. {
  88. path: 'notification',
  89. name: 'admin.notification',
  90. component: Content,
  91. meta: {
  92. title: '消息通知',
  93. },
  94. children: [
  95. {
  96. path: 'config',
  97. name: 'admin.notification.config',
  98. component: () => import('@/app/admin/views/notification/config/index.vue'),
  99. meta: {
  100. title: '消息配置',
  101. },
  102. },
  103. ],
  104. },
  105. {
  106. path: 'banner',
  107. name: 'admin.banner',
  108. component: () => import('@/app/admin/views/banner/index.vue'),
  109. meta: {
  110. title: '轮播图管理',
  111. icon: 'Picture',
  112. },
  113. },
  114. ],
  115. };