routes.ts 429 B

12345678910111213141516171819202122
  1. import childRoutes from '@/router/child-routes'
  2. const routes: Array<RouteRecordRaw> = [
  3. {
  4. path: '/',
  5. name: 'Home',
  6. component: () => import('@/views/index.vue')
  7. },
  8. {
  9. path: '/search',
  10. name: 'Search',
  11. component: () => import('@/views/search.vue')
  12. },
  13. ...childRoutes,
  14. {
  15. path: '/:pathMatch(.*)',
  16. name: '404',
  17. component: () => import('@/components/404.vue')
  18. }
  19. ]
  20. export default routes