routes.js 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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: '/rotationChart',
  24. name: '轮播图管理',
  25. icon: 'smile',
  26. // access: 'canAdmin',
  27. routes: [
  28. {
  29. path: '/rotationChart/list',
  30. name: '轮播图管理',
  31. icon: 'smile',
  32. component: './rotationChart/list',
  33. },
  34. {
  35. path: '/rotationChart/add',
  36. name: '轮播图新增',
  37. icon: 'smile',
  38. hideInMenu: true,
  39. component: './rotationChart/edit',
  40. },
  41. {
  42. path: '/rotationChart/edit',
  43. name: '轮播图编辑',
  44. icon: 'smile',
  45. hideInMenu: true,
  46. component: './rotationChart/edit',
  47. },
  48. {
  49. component: './404',
  50. },
  51. ],
  52. },
  53. {
  54. path: '/',
  55. redirect: '/rotationChart/list',
  56. },
  57. {
  58. component: './404',
  59. },
  60. ];