import Layout from '~src/layout/index.vue'

//路由菜单系统内置页面配置
export default [
    {
        path: '/',
        redirect: '/index',
    },
    {
        path: '/jump',
        name: 'jump',
        meta: { title: '跳转' },
        component: () => import('~src/views/jump.vue'),
    },
    {
        path: '/init',
        name: 'init',
        meta: { title: '初始配置' },
        component: () => import('~src/views/init.vue'),
    },
    {
        path: '/project',
        name: 'project',
        meta: { title: '项目管理' },
        component: () => import('~src/views/project.vue'),
    },
    {
        path: '/index',
        name: 'index',
        redirect: '/home',
        meta: { title: '首页' },
        component: Layout,
        children: [
            {
                path: '/home',
                name: 'home',
                meta: { title: '主页' },
                component: () => import('~src/views/home.vue'),
            },
            {
                path: '/query',
                name: 'query',
                meta: { title: '档案查询' },
                component: () => import('~src/views/query.vue'),
            },
        ],
    },
]
