routes.js 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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: '/package/list',
  67. name: '套餐管理',
  68. icon: 'VideoCameraOutlined',
  69. component: './package/list',
  70. },
  71. {
  72. component: './404',
  73. },
  74. ];