Skip to content

Commit

Permalink
fix(template): lazy routes
Browse files Browse the repository at this point in the history
  • Loading branch information
oushihao committed Mar 19, 2022
1 parent 74d6ee0 commit 20891ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/vue3/src/routes/index.ts
Expand Up @@ -5,12 +5,12 @@ const routes: RouteRecordRaw[] = [
{
name: 'Home',
path: '/',
component: import('~/pages/Home.vue'),
component: () => import('~/pages/home.vue'),
},
{
name: 'About',
path: '/about',
component: import('~/pages/about.vue'),
component: () => import('~/pages/about.vue'),
},
]

Expand Down

0 comments on commit 20891ff

Please sign in to comment.