import App from '../App'

const index = r => require.ensure([], () => r(require('../views/index')), 'search')
const result = r => require.ensure([], () => r(require('../views/result')), 'result')
// const details = r => require.ensure([], () => r(require('../views/teacher-details')), 'details')

export default [{
    path: '/',
    component: App, //顶层路由，对应index.html
    children: [
        {
            path: '',
            redirect: '/index'
        },
        {
            path: '/home',
            component: index
        },
        {
            path: '/index',
            component: index
        }
    ]
}]
