1. 克隆一个新的项目

2.删除没有用的路由

  1. export const constantRoutes中删除一下路由菜单
  2. path: '/documentation',
  3. path: '/guide',
  4. path: '/profile',
  1. {
  2. path: '/documentation',
  3. component: Layout,
  4. children: [
  5. {
  6. path: 'index',
  7. component: () => import('@/views/documentation/index'),
  8. name: 'Documentation',
  9. meta: { title: 'Documentation', icon: 'documentation', affix: true }
  10. }
  11. ]
  12. },
  13. {
  14. path: '/guide',
  15. component: Layout,
  16. redirect: '/guide/index',
  17. children: [
  18. {
  19. path: 'index',
  20. component: () => import('@/views/guide/index'),
  21. name: 'Guide',
  22. meta: { title: 'Guide', icon: 'guide', noCache: true }
  23. }
  24. ]
  25. },
  26. {
  27. path: '/profile',
  28. component: Layout,
  29. redirect: '/profile/index',
  30. hidden: true,
  31. children: [
  32. {
  33. path: 'index',
  34. component: () => import('@/views/profile/index'),
  35. name: 'Profile',
  36. meta: { title: 'Profile', icon: 'user', noCache: true }
  37. }
  38. ]
  39. }