Skip to content

Commit d99579d

Browse files
authored
Update router.js
1 parent 89b13ee commit d99579d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

generator/templates/simple/src/router.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Home from './views/Home.vue'
44

55
Vue.use(Router)
66

7-
export default new Router({
7+
const options = {
88
mode: 'history',
99
base: process.env.BASE_URL,
1010
routes: [
@@ -23,3 +23,5 @@ export default new Router({
2323
}
2424
]
2525
})
26+
export default new Router(options)
27+
export const options = options

0 commit comments

Comments
 (0)