keywordLibrary.js 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. /** When your routing table is too long, you can split it into small modules **/
  2. import Layout from '@/layout'
  3. const keywordLibraryRouter = {
  4. path: '/library',
  5. component: Layout,
  6. redirect: '/library/keyword',
  7. alwaysShow: true, // will always show the root menu
  8. name: 'UserKeywordCount', // name必须和后台配置一致,不然匹配不到
  9. meta: { title: '关键词库' },
  10. children: [
  11. {
  12. path: 'keyword',
  13. name: 'KeywordMenu',
  14. redirect: '/library/keyword/list',
  15. component: () => import('@/views/index'),
  16. meta: { title: '关键词统计' },
  17. children: [
  18. {
  19. path: 'list',
  20. name: 'KeywordList',
  21. component: () => import('@/views/library/keyword/list'),
  22. meta: { title: '关键词列表' }
  23. },
  24. {
  25. path: 'recommend',
  26. name: 'KeywordRecommend',
  27. component: () => import('@/views/library/keyword/recommend'),
  28. meta: { title: '关键词推荐' }
  29. }
  30. ]
  31. },
  32. {
  33. path: 'tag',
  34. name: 'TagMenu',
  35. redirect: '/library/tag/list',
  36. alwaysShow: true,
  37. component: () => import('@/views/index'),
  38. meta: { title: '标签库', useDefault: true },
  39. children: [
  40. {
  41. path: 'list',
  42. name: 'TagList',
  43. component: () => import('@/views/library/tag/list'),
  44. meta: { title: '动态标签列表' }
  45. },
  46. {
  47. path: 'static-list',
  48. name: 'StaticList',
  49. component: () => import('@/views/library/tag/static-list'),
  50. meta: { title: '静态标签列表' }
  51. },
  52. {
  53. path: 'tag-form',
  54. name: 'TagForm',
  55. component: () => import('@/views/library/tag/tag-form'),
  56. meta: { title: '动态标签添加/编辑' }
  57. },
  58. {
  59. path: 'priority-list',
  60. name: 'PriorityList',
  61. component: () => import('@/views/library/tag/priority-list'),
  62. meta: { title: '优先展示标签' }
  63. }
  64. ]
  65. },
  66. {
  67. path: 'supplierTag',
  68. name: 'SupplierTagMenu',
  69. redirect: '/library/supplierTag/list',
  70. alwaysShow: true,
  71. component: () => import('@/views/index'),
  72. meta: { title: '供应商关联标签' },
  73. children: [
  74. {
  75. path: 'list',
  76. name: 'SupplierList',
  77. component: () => import('@/views/library/supplierTag/supplier-list'),
  78. meta: { title: '供应商列表' }
  79. },
  80. {
  81. path: 'tagList',
  82. hidden: true,
  83. component: () => import('@/views/library/supplierTag/list'),
  84. name: 'SupplierTagList',
  85. meta: { title: '标签列表', noCache: true, activeMenu: '/library/supplierTag/' }
  86. }
  87. ]
  88. }
  89. ]
  90. }
  91. export default keywordLibraryRouter