/**
 * 需要动态添加的路由（此处仅做记录，保证与后端保持同步）
 */
import Layout from '@/layout'

export const staticRouter = [
    {
        path: '/business',
        component: Layout,
        name: 'Business',
        hidden: false,
        meta: {
            title: '业务管理',
            icon: 'yewu'
        },
        redirect: '/culturalRelic',
        children: [{
            path: 'culturalRelic',
            name: 'CulturalRelic',
            component: () => import('@/views/culturalRelic/index'),
            meta: {
                title: '文物管理',
                icon: 'culturalRelic'
            },
        },
        {
            path: 'display',
            name: 'Display',
            component: () => import('@/views/display/index'),
            meta: {
                title: '展览管理',
                icon: 'display'
            }
        },
        // {
        //   path: 'boutique',
        //   name: 'Boutique',
        //   component: () => import('@/views/boutique/index'),
        //   meta: {
        //     title: '精品展管理',
        //     icon: 'boutique'
        //   }
        // },
        {
            path: 'museum',
            name: 'Museum',
            component: () => import('@/views/museum/index'),
            meta: {
                title: '博物馆管理',
                icon: 'museum'
            }
        },
        {
            path: 'virtual',
            name: 'Virtual',
            component: () => import('@/views/virtual/index'),
            meta: {
                title: '虚拟展厅',
                icon: 'virtual'
            }
        },
        {
            path: 'literature',
            name: 'Literature',
            component: () => import('@/views/literature/index'),
            meta: {
                title: '文献管理',
                icon: 'literature'
            }
        },
        {
            path: 'product',
            name: 'Product',
            component: () => import('@/views/product/index'),
            meta: {
                title: '文创产品管理',
                icon: 'product'
            }
        },
        {
            path: 'displayApproval',
            name: 'DisplayApproval',
            component: () => import('@/views/displayApproval/index.vue'),
            meta: {
                title: '展览审批',
                icon: 'approval'
            }
        },
        ]
    },
    {
        path: '/system',
        component: Layout,
        name: 'System',
        hidden: false,
        meta: {
            title: '系统管理',
            icon: 'xitong'
        },
        redirect: '/user',
        children: [{
            path: 'user',
            name: 'User',
            component: () => import('@/views/user/index'),
            meta: {
                title: '用户管理',
                icon: 'user2'
            }
        },
        {
            path: 'role',
            name: 'Role',
            component: () => import('@/views/role/index'),
            meta: {
                title: '角色管理',
                icon: 'role'
            }
        },
        {
            path: 'log',
            name: 'Log',
            component: () => import('@/views/log/index'),
            meta: {
                title: '日志管理',
                icon: 'log'
            }
        },
        ]
    },
    {
        path: '/tools',
        component: Layout,
        name: 'Tools',
        hidden: false,
        meta: {
            title: '实用工具',
            icon: 'tool'
        },
        redirect: '/matting',
        children: [{
            path: 'matting',
            name: 'Matting',
            component: () => import('@/views/matting/index'),
            meta: {
                title: '在线抠图',
                icon: 'scissors'
            }
        },
        ]
    },
]
