1
0
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
591 B

import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)
function load (component) {
return () => System.import(`components/${component}.vue`)
}
export default new VueRouter({
routes: [
{
path: '/',
component: load('Index'),
children: [
{ path: '', component: load('index/main') },
{ path: 'login', component: load('index/login') },
{ path: 'register', component: load('index/register') }
]
},
{
path: '/lists',
component: load('List-overview'),
children: [
{ path: '', component: load('list-overview/main') }
]
}
]
})