index.js 855 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /**
  2. * Points Module - 积分管理模块
  3. */
  4. export default {
  5. // 路由配置
  6. routes: {
  7. path: '/points',
  8. name: 'PointsModule',
  9. component: () => import('@/layout/index.vue'),
  10. redirect: '/points/log',
  11. meta: {
  12. title: '积分管理',
  13. icon: 'Coin',
  14. permission: 'points'
  15. },
  16. children: [
  17. {
  18. path: 'log',
  19. name: 'PointsLog',
  20. component: () => import('./views/PointsLog.vue'),
  21. meta: {
  22. title: '积分明细',
  23. icon: 'List',
  24. keepAlive: true
  25. }
  26. }
  27. ]
  28. },
  29. // 菜单配置
  30. menus: [
  31. {
  32. path: '/points',
  33. title: '积分管理',
  34. icon: 'Coin',
  35. permission: 'points',
  36. children: [
  37. {
  38. path: '/points/log',
  39. title: '积分明细',
  40. icon: 'List'
  41. }
  42. ]
  43. }
  44. ]
  45. }