import Vue from 'vue'
import Router from 'vue-router'
import LayOut from '@/views/LayOut'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
// import page2 from '@/views/page2'
Vue.use(Router)
Vue.use(ElementUI)
export default new Router({
routes: [
{
path: '/',
name: 'LayOut',
component: LayOut,
children: [
{
path: '/page2',
name: 'page2',
// component: page2
component: (resolve) => require(['@/views/page2'], resolve)
}
]
}
]
})