import App from '../App'

const home = r => require.ensure([], () => r(require('../views/home/home')), 'home')
const gpranking = r => require.ensure([], () => r(require('../views/gpranking/gpranking.vue')), 'gpranking')



export default [{
    path: '/',
    component: App, //顶层路由，对应index.html
    children: [ //二级路由。对应App.vue
        //地址为空时跳转home页面
        {
            path: '',
            redirect: '/home'
        },
        //首页城市列表页
        {
            path: '/home',
            component: home
        },
        //学习评价gpranking页面
        {
            path: '/gpranking',
            component: gpranking
        }
    ]
}]
