routes.js 2.3KB

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