import Layout from '@/layout'
export const staticRouters = [
    {
        path: '',
        component: Layout,
        redirect: 'index',
        children: [
            {
                path: 'index',
                component: () => import('@/views/home/index'),
                name: 'Index',
                meta: { title: '首页', icon: 'dashboard', affix: false }
            }
        ]
    },
    {
        path: '/mine',
        component: Layout,
        redirect: 'myCreate',
        name: 'Mine',
        meta: {
            title: '我的',
            icon: 'dashboard',
            noCache: false,
            affix: false
        },
        children: [
            {
                path: 'myCreate',
                component: () => import('@/views/mine/myCreate/index.vue'),
                name: 'MyDoc',
                meta: {
                    title: '我的创作',
                    icon: 'dashboard',
                    noCache: false,
                    affix: false
                }
            },
            {
                path: 'myTemplate',
                component: () => import('@/views/mine/myTemplate/index.vue'),
                name: 'MyTemplate',
                meta: {
                    title: '我的模板',
                    icon: 'dashboard',
                    noCache: false,
                    affix: false
                }
            },
            {
                path: 'myCollect',
                component: () => import('@/views/mine/myCollect/index.vue'),
                name: 'MyCollect',
                meta: {
                    title: '我的收藏',
                    icon: 'dashboard',
                    noCache: false,
                    affix: false
                }
            },
            {
                path: 'myNote',
                component: () => import('@/views/mine/myNote/index.vue'),
                name: 'MyNote',
                meta: {
                    title: '我的笔记',
                    icon: 'dashboard',
                    noCache: false,
                    affix: false
                }
            },
            {
                path: 'myShare',
                component: () => import('@/views/mine/myShare/index.vue'),
                name: 'MyShare',
                meta: {
                    title: '我的共享',
                    icon: 'dashboard',
                    noCache: false,
                    affix: false
                }
            }
        ]
    },
    {
        path: '/resource',
        component: Layout,
        redirect: 'internal',
        name: 'Resource',
        meta: {
            title: '资源社区',
            icon: 'dashboard',
            noCache: false,
            affix: false
        },
        children: [
            {
                path: 'internal',
                component: () => import('@/views/resource/internal/index.vue'),
                name: 'Internal',
                meta: {
                    title: '内部资源',
                    icon: 'dashboard',
                    noCache: false,
                    affix: false
                }
            },
            {
                path: 'external',
                component: () => import('@/views/resource/external/index.vue'),
                name: 'External',
                meta: {
                    title: '第三方资源',
                    icon: 'dashboard',
                    noCache: false,
                    affix: false
                }
            },
            {
                path: 'sharedCommunity',
                component: () => import('@/views/resource/sharedCommunity/index.vue'),
                name: 'SharedCommunity',
                meta: {
                    title: '共享社区',
                    icon: 'dashboard',
                    noCache: false,
                    affix: false
                }
            }
        ]
    },
    {
        path: '/wpsReader',
        name: 'WpsReader',
        hidden: true,
        component: () => import('@/views/read/wpsReader/index.vue'),
    },
    {
        path: '/pdfReader',
        name: 'PdfReader',
        hidden: true,
        component: () => import('@/views/read/pdfReader/index.vue'),
    }
]