config.js 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /** When your routing table is too long, you can split it into small modules **/
  2. import Layout from '@/layout'
  3. const configRouter = {
  4. path: '/config',
  5. component: Layout,
  6. redirect: '/config/base',
  7. hidden: true,
  8. children: [
  9. {
  10. path: 'base', // 站点配置
  11. component: () => import('@/views/config/site-config'),
  12. name: 'siteConfig',
  13. meta: { title: '站点配置', icon: 'user', noCache: true }
  14. },
  15. {
  16. path: 'exchange-rate', // 汇率配置
  17. component: () => import('@/views/config/exchange-rate'),
  18. name: 'exchangeRate',
  19. meta: { title: '汇率配置', icon: 'user', noCache: true }
  20. },
  21. {
  22. path: 'dec-role', // 报单中心配置
  23. component: () => import('@/views/config/stockist-config'),
  24. name: 'stockistConfig',
  25. meta: { title: '报单中心配置', icon: 'user', noCache: true }
  26. },
  27. {
  28. path: 'bonus-opt', // 奖金配置
  29. component: () => import('@/views/config/bonus-config'),
  30. name: 'bonusConfig',
  31. meta: { title: '奖金配置', icon: 'user', noCache: true }
  32. },
  33. {
  34. path: 'transfer', // 转账配置
  35. component: () => import('@/views/config/transfer-config'),
  36. name: 'transferConfig',
  37. meta: { title: '转账配置', icon: 'user', noCache: true }
  38. },
  39. {
  40. path: 'dec-level', // 会员级别配置
  41. component: () => import('@/views/config/dec-level-config'),
  42. name: 'decLevelConfig',
  43. meta: { title: '会员级别配置', icon: 'user', noCache: true }
  44. },
  45. {
  46. path: 'other', // 其他配置
  47. component: () => import('@/views/config/other-config'),
  48. name: 'otherConfig',
  49. meta: { title: '其他配置', icon: 'user', noCache: true }
  50. }
  51. ]
  52. }
  53. export default configRouter