/**
 * 静态路由，默认加载，不需要权限控制
 */
export default [
    {
        path: '/',
        name: 'Main',
        redirect: '/login',
        meta: {
            title: '首页',
        },
        component: () => import('_platform/components/main/index.vue'),
        children: [
            {
                path: 'home',
                name: 'home',
                meta: {
                    title: '外呼数据',
                },
                component: () => import('_platform/view/calldata/index.vue')
            },
            {
                path: 'store',
                name: 'store',
                meta: {
                    title: '经销商管理',
                },
                component: () => import('_platform/view/store/index.vue')
            },
            {
                path: 'user',
                name: 'user',
                meta: {
                    title: '用户管理',
                },
                component: () => import('_platform/view/user/index.vue')
            },
            {
                path: 'config',
                name: 'config',
                meta: {
                    title: '变量话术配置',
                },
                component: () => import('_platform/view/config/index.vue')
            },
        ]
    },
    {
        path: '/login',
        name: 'login',
        meta: {
            title: '登录',
        },
        component: () => import('_platform/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')
    }
]
