config.js 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. import Layout from '@/layout'
  2. // import Layout from '../../layout'
  3. import { roterPre } from '@/settings'
  4. const configRouter =
  5. {
  6. path: `${roterPre}/config`,
  7. name: 'system_config',
  8. meta: {
  9. icon: 'dashboard',
  10. title: '系统配置'
  11. },
  12. alwaysShow: true,
  13. component: Layout,
  14. children: [
  15. {
  16. path: 'classify',
  17. name: 'system_config_classify',
  18. meta: {
  19. title: '配置分类',
  20. noCache: true
  21. },
  22. component: () => import('@/views/system/config/classify')
  23. },
  24. {
  25. path: 'setting',
  26. name: 'system_config_setting',
  27. meta: {
  28. title: '配置管理',
  29. noCache: true
  30. },
  31. component: () => import('@/views/system/config/setting')
  32. },
  33. {
  34. path: 'picture',
  35. name: 'system_config_picture',
  36. meta: {
  37. title: '素材管理',
  38. noCache: true
  39. },
  40. component: () => import('@/views/system/config/picture')
  41. },
  42. {
  43. path: 'service',
  44. name: 'Service',
  45. meta: {
  46. title: '客服管理'
  47. },
  48. component: () => import('@/views/system/service/index')
  49. },
  50. {
  51. path: 'chat',
  52. name: 'chat',
  53. meta: {
  54. title: '客服聊天'
  55. },
  56. component: () => import('@/views/chatroom/index')
  57. },
  58. {
  59. path: 'helper',
  60. name: 'kefu',
  61. meta: {
  62. title: '客服设置'
  63. },
  64. component: () => import('@/views/setting/helper/index')
  65. },
  66. {
  67. path: 'agree',
  68. name: 'system_config_agree',
  69. meta: {
  70. title: '协议设置',
  71. noCache: true
  72. },
  73. component: () => import('@/views/agreement/agree/index')
  74. },
  75. {
  76. path: 'contribution',
  77. name: 'system_contribution',
  78. meta: {
  79. title: '商家贡献值',
  80. noCache: true
  81. },
  82. component: () => import('@/views/contribution/contribution/index')
  83. }
  84. ]
  85. }
  86. export default configRouter