Skip to content

Commit bf1745b

Browse files
authored
Update router.js
1 parent 69b02fe commit bf1745b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

generator/templates/simple/src/router.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import Vue from 'vue'
22
import Router from 'vue-router'
33
import Home from './views/Home.vue'
4+
import About from './views/About.vue'
45

56
Vue.use(Router)
67

@@ -16,10 +17,7 @@ export const options = {
1617
{
1718
path: '/about',
1819
name: 'about',
19-
// route level code-splitting
20-
// this generates a separate chunk (about.[hash].js) for this route
21-
// which is lazy-loaded when the route is visited.
22-
component: () => import(/* webpackChunkName: "about" */ './views/About.vue')
20+
component: About
2321
}
2422
]
2523
}

0 commit comments

Comments
 (0)