routes.js 2.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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: '/sample',
  44. name: 'H5样例管理',
  45. component: '../layouts/BlankLayout',
  46. routes: [
  47. {
  48. path: '/sample/h5/list',
  49. name: 'H5样例',
  50. component: './sample/h5/index',
  51. },
  52. {
  53. path: '/sample/h5/edit',
  54. name: 'H5样例编辑',
  55. hideInMenu: true,
  56. component: './sample/h5/edit',
  57. },
  58. {
  59. path: '/sample/demand/list',
  60. name: 'H5需求单',
  61. component: './sample/demand/index',
  62. },
  63. {
  64. path: '/sample/demand/edit',
  65. name: 'H5需求单详情',
  66. hideInMenu: true,
  67. component: './sample/demand/edit',
  68. },
  69. ],
  70. },
  71. {
  72. path: '/resource',
  73. name: '资源位管理',
  74. component: '../layouts/BlankLayout',
  75. routes: [
  76. {
  77. path: '/resource/openScreen',
  78. name: '开屏通知',
  79. component: './resource/openScreen',
  80. },
  81. {
  82. path: '/resource/openScreen/edit',
  83. name: '开屏通知修改',
  84. hideInMenu: true,
  85. component: './resource/openScreen/edit',
  86. },
  87. ],
  88. },
  89. {
  90. component: './404',
  91. },
  92. ],
  93. },
  94. {
  95. component: './404',
  96. },
  97. ],
  98. },
  99. {
  100. component: './404',
  101. },
  102. ];