routes.js 3.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. export default [
  2. {
  3. path: '/user',
  4. component: '../layouts/UserLayout',
  5. routes: [
  6. {
  7. name: 'login',
  8. path: '/user/login',
  9. component: './user/login',
  10. },
  11. ],
  12. },
  13. {
  14. path: '/',
  15. component: '../layouts/SecurityLayout',
  16. routes: [
  17. {
  18. path: '/',
  19. component: '../layouts/BasicLayout',
  20. authority: ['admin', 'user'],
  21. routes: [
  22. {
  23. path: '/',
  24. redirect: '/channel',
  25. },
  26. // {
  27. // path: '/welcome',
  28. // name: '首页',
  29. // component: './Welcome',
  30. // },
  31. {
  32. path: '/channel',
  33. name: '渠道列表',
  34. component: './channel',
  35. },
  36. {
  37. path: '/channel/edit',
  38. name: '渠道列表',
  39. hideInMenu: true,
  40. component: './channel/edit',
  41. },
  42. {
  43. path: '/contact',
  44. name: '联系人管理',
  45. component: '../layouts/BlankLayout',
  46. routes: [
  47. {
  48. path: '/contact/contact/list',
  49. name: '联系人',
  50. component: './contact/contact/list',
  51. },
  52. {
  53. path: '/contact/contact/add',
  54. name: '新增',
  55. hideInMenu: true,
  56. component: './contact/contact/add',
  57. },
  58. {
  59. path: '/contact/contact/detail',
  60. name: '详情',
  61. hideInMenu: true,
  62. component: './contact/contact/detail',
  63. },
  64. ],
  65. },
  66. {
  67. path: '/sample',
  68. name: 'H5样例管理',
  69. component: '../layouts/BlankLayout',
  70. routes: [
  71. {
  72. path: '/sample/h5/list',
  73. name: 'H5样例',
  74. component: './sample/h5/index',
  75. },
  76. {
  77. path: '/sample/demand/list',
  78. name: 'H5需求单',
  79. component: './sample/demand/index',
  80. },
  81. {
  82. path: '/sample/demand/edit',
  83. name: 'H5需求单详情',
  84. hideInMenu: true,
  85. component: './sample/demand/edit',
  86. },
  87. ],
  88. },
  89. {
  90. path: '/resource',
  91. name: '资源位管理',
  92. component: '../layouts/BlankLayout',
  93. routes: [
  94. {
  95. path: '/resource/openScreen',
  96. name: '开屏通知',
  97. component: './resource/openScreen',
  98. },
  99. {
  100. path: '/resource/openScreen/edit',
  101. name: '开屏通知修改',
  102. hideInMenu: true,
  103. component: './resource/openScreen/edit',
  104. },
  105. ],
  106. },
  107. {
  108. component: './404',
  109. },
  110. ],
  111. },
  112. {
  113. component: './404',
  114. },
  115. ],
  116. },
  117. {
  118. component: './404',
  119. },
  120. ];