routes.js 2.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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. },
  59. {
  60. path: '/resource',
  61. name: '资源位管理',
  62. component: '../layouts/BlankLayout',
  63. routes: [
  64. {
  65. path: '/resource/openScreen',
  66. name: '开屏通知',
  67. component: './resource/openScreen',
  68. },
  69. {
  70. path: '/resource/openScreen/edit',
  71. name: '开屏通知修改',
  72. hideInMenu: true,
  73. component: './resource/openScreen/edit',
  74. },
  75. ],
  76. },
  77. {
  78. component: './404',
  79. },
  80. ],
  81. },
  82. {
  83. component: './404',
  84. },
  85. ],
  86. },
  87. {
  88. component: './404',
  89. },
  90. ];