routes.js 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. export default [
  2. // {
  3. // path: '/user',
  4. // layout: false,
  5. // routes: [
  6. // {
  7. // name: 'login',
  8. // path: '/user/login',
  9. // component: './User/Login',
  10. // },
  11. // {
  12. // component: './404',
  13. // },
  14. // ],
  15. // },
  16. // {
  17. // path: '/welcome',
  18. // name: 'welcome',
  19. // icon: 'smile',
  20. // component: './Welcome',
  21. // },
  22. {
  23. path: '/',
  24. redirect: '/rotationChart/list',
  25. },
  26. {
  27. path: '/rotationChart/list',
  28. name: '轮播图管理',
  29. icon: 'smile',
  30. component: './rotationChart/list',
  31. },
  32. {
  33. path: '/rotationChart/add',
  34. name: '轮播图新增',
  35. icon: 'smile',
  36. hideInMenu: true,
  37. component: './rotationChart/edit',
  38. },
  39. {
  40. path: '/rotationChart/edit',
  41. name: '轮播图编辑',
  42. icon: 'smile',
  43. hideInMenu: true,
  44. component: './rotationChart/edit',
  45. },
  46. {
  47. path: '/monitor',
  48. name: '监控管理',
  49. icon: 'VideoCameraOutlined',
  50. component: './monitor/index',
  51. },
  52. {
  53. path: '/dish/list',
  54. name: '菜肴管理',
  55. icon: 'VideoCameraOutlined',
  56. component: './dish/list',
  57. },
  58. {
  59. path: '/dish/add',
  60. name: '菜肴详情',
  61. icon: 'smile',
  62. hideInMenu: true,
  63. component: './dish/edit',
  64. },
  65. {
  66. path: '/dish/edit',
  67. name: '菜肴修改',
  68. hideInMenu: true,
  69. icon: 'VideoCameraOutlined',
  70. component: './dish/edit',
  71. },
  72. {
  73. path: '/package/list',
  74. name: '套餐管理',
  75. icon: 'VideoCameraOutlined',
  76. component: './package/index',
  77. },
  78. {
  79. path: '/guaranteeTask/list',
  80. name: '任务管理',
  81. icon: 'VideoCameraOutlined',
  82. component: './guaranteeTask/index',
  83. },
  84. {
  85. path: '/guaranteeTask/edit',
  86. name: '任务详情',
  87. icon: 'VideoCameraOutlined',
  88. // hideInMenu: true,
  89. component: './guaranteeTask/Edit/index',
  90. },
  91. {
  92. path: '/guaranteeTask/print',
  93. name: '保障单',
  94. hideInMenu: true,
  95. layout: false,
  96. component: './guaranteeTask/print/index',
  97. },
  98. {
  99. component: './404',
  100. },
  101. ];