Nuxt/test/fixtures/module/router.js

23 lines
394 B
JavaScript
Raw Normal View History

2017-05-21 17:18:26 +00:00
import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)
export function createRouter () {
return new Router({
mode: 'history',
routes: [
2017-06-29 17:00:18 +00:00
{
path: '/',
component: require('~/views/index.vue'),
name: 'index'
},
{
path: '/about',
component: require('~/views/about.vue'),
name: 'about'
}
2017-05-21 17:18:26 +00:00
]
})
}