routes.js 923B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. component: './404',
  48. },
  49. ];