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: 'MyCreate',
                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: '/manage',
        component: Layout,
        redirect: 'templateManage',
        name: 'Manage',
        meta: {
            title: '后台管理',
            icon: 'dashboard',
            noCache: false,
            affix: false
        },
        children: [
            {
                path: 'templateManage',
                component: () => import('@/views/manage/templateManage/index.vue'),
                name: 'TemplateManage',
                meta: {
                    title: '模板管理',
                    icon: 'dashboard',
                    noCache: false,
                    affix: false
                }
            },
            {
                path: 'shareManage',
                component: () => import('@/views/manage/shareManage/index.vue'),
                name: 'ShareManage',
                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'),
    }
]