export const routers = [
    {
        path: '/',
        redirect: '/home',
        name: 'Home',
        meta: {},
        children: [
            {
                path: 'home',
                name: 'Index',
                meta: {
                    title: '最近文件',
                    icon: 'dashboard',
                    noCache: false,
                    affix: true
                }
            }
        ]
    },
    {
        path: '/mine',
        redirect: 'myCreate',
        name: 'Mine',
        meta: {
            title: '我的',
            icon: 'dashboard',
            noCache: false,
            affix: true
        },
        children: [
            {
                path: 'myCreate',
                name: 'MyDoc',
                meta: {
                    title: '我的创作',
                    icon: 'dashboard',
                    noCache: false,
                    affix: true
                }
            },
            {
                path: 'myTemplate',
                name: 'MyTemplate',
                meta: {
                    title: '我的模板',
                    icon: 'dashboard',
                    noCache: false,
                    affix: true
                }
            },
            {
                path: 'myCollect',
                name: 'MyCollect',
                meta: {
                    title: '我的收藏',
                    icon: 'dashboard',
                    noCache: false,
                    affix: true
                }
            },
            {
                path: 'myNote',
                name: 'MyNote',
                meta: {
                    title: '我的笔记',
                    icon: 'dashboard',
                    noCache: false,
                    affix: true
                }
            }
        ]
    },
    {
        path: '/resource',
        redirect: 'internal',
        name: 'Resource',
        meta: {
            title: '资源社区',
            icon: 'dashboard',
            noCache: false,
            affix: true
        },
        children: [
            {
                path: 'internal',
                name: 'Internal',
                meta: {
                    title: '内部资源',
                    icon: 'dashboard',
                    noCache: false,
                    affix: true
                }
            },
            {
                path: 'external',
                name: 'External',
                meta: {
                    title: '第三方资源',
                    icon: 'dashboard',
                    noCache: false,
                    affix: true
                }
            },
            {
                path: 'sharedCommunity',
                name: 'SharedCommunity',
                meta: {
                    title: '共享社区',
                    icon: 'dashboard',
                    noCache: false,
                    affix: true
                }
            }
        ]
    },
]