export default {
    // 定义路径
    path: '/',
    name: 'home',
    // 动态引入路由 路由的懒加载
    component: () => import('@/views/HomeView.vue'),
    // 给indedx定义二级路由
    children: [
        {
            path: 'index',
            name: 'index',
            // 动态引入路由 路由的懒加载
            component: () => import("@/components/index/VueIndex.vue"),
            meta: {
                title: '首页'
            }
        },
        {
            path: 'zhishi',
            name: 'zhishi',
            // 动态引入路由 路由的懒加载
            component: () => import("@/components/zhishi/ZhiShi.vue"),
            meta: {
                title: '文化小知识'
            }
        },
        {
            path: 'desc',
            name: 'desc',
            // 动态引入路由 路由的懒加载
            component: () => import("@/components/zhishi/ZhiShiDesc.vue"),
            meta: {
                title: '文化小知识详情'
            }
        },
        {
            path: 'liuyan',
            name: 'liuyan',
            // 动态引入路由 路由的懒加载
            component: () => import("@/components/liuyan/LiuYan.vue"),
            meta: {
                title: '留言'
            }
        },
        {
            path: 'mine',
            name: 'mine',
            // 动态引入路由 路由的懒加载
            component: () => import("@/components/mine/mine.vue"),
            meta: {
                title: '个人中心'
            }
        },
        {
            path: 'question',
            name: 'question',
            // 动态引入路由 路由的懒加载
            component: () => import("@/components/questDesc/questDesc.vue"),
            meta: {
                title: '答题详情'
            }
        },

    ]
}