19 lines
311 B
JavaScript
19 lines
311 B
JavaScript
|
|
import Vue from 'vue'
|
||
|
|
import Router from 'vue-router'
|
||
|
|
|
||
|
|
const Index = r => require.ensure([], () => r(require('@page/index')), 'Index')
|
||
|
|
Vue.use(Router)
|
||
|
|
|
||
|
|
export default new Router({
|
||
|
|
routes: [
|
||
|
|
{
|
||
|
|
path: '/',
|
||
|
|
redirect: '/index'
|
||
|
|
},
|
||
|
|
{
|
||
|
|
path: '/index',
|
||
|
|
component: Index
|
||
|
|
}
|
||
|
|
]
|
||
|
|
})
|