/**
 * 静态路由，默认加载，不需要权限控制
 */
export default [
    {
        path: '/',
        name: 'Main',
        redirect: '/login',
        meta: {
            title: '首页',
        },
        component: () => import('_call/components/main/index.vue'),
        children: [
            {
                path: 'home',
                name: 'home',
                meta: {
                    title: '主页',
                },
                component: () => import('_call/view/home/index.vue')
            },
            {
                path: 'taskDetail',
                name: 'taskDetail',
                meta: {
                    title: '任务详情',
                },
                component: () => import('_call/view/taskDetail/index.vue')
            },
        ]
    },
    {
        path: '/login',
        name: 'login',
        meta: {
            title: 'AI外呼',
        },
        component: () => import('_call/view/login/Login.vue')
    },
    {
        path: '/404',
        name: '404',
        meta: {
            title: '页面没找到',
            hideInMenu: true
        },
        component: () => import('_c/errorPage/404')
    },
    {
        path: '/401',
        name: '401',
        meta: {
            title: '无权限访问',
            hideInMenu: true
        },
        component: () => import('_c/errorPage/401')
    },
    {
        path: '/500',
        name: '500',
        meta: {
            title: '服务器错误',
            hideInMenu: true
        },
        component: () => import('_c/errorPage/500')
    }
]
