2018-11-30 07:02:54 +00:00
|
|
|
import Vue from 'vue'
|
|
|
|
import Router from 'vue-router'
|
2018-11-30 14:47:13 +00:00
|
|
|
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
|
|
|
|
},
|
|
|
|
{
|
2018-11-30 14:47:13 +00:00
|
|
|
path: '/config',
|
|
|
|
name: 'config',
|
2018-11-30 07:42:04 +00:00
|
|
|
// route level code-splitting
|
2018-11-30 14:47:13 +00:00
|
|
|
// 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.
|
2018-11-30 14:47:13 +00:00
|
|
|
component: () => import(/* webpackChunkName: "config" */ './views/config.vue')
|
2018-11-30 07:02:54 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
})
|