comptes/src/router.js

24 lines
537 B
JavaScript
Raw Normal View History

2018-11-30 07:02:54 +00:00
import Vue from 'vue'
import Router from 'vue-router'
import home from './views/home.vue'
2018-11-30 07:02:54 +00:00
Vue.use(Router)
export default new Router({
routes: [
{
path: '/',
name: 'home',
2018-11-30 07:42:04 +00:00
component: home
},
{
path: '/config',
name: 'config',
2018-11-30 07:42:04 +00:00
// route level code-splitting
// this generates a separate chunk (config.[hash].js) for this route
2018-11-30 07:42:04 +00:00
// which is lazy-loaded when the route is visited.
component: () => import(/* webpackChunkName: "config" */ './views/config.vue')
2018-11-30 07:02:54 +00:00
}
]
})