/* Layout */
import Layout from '@/layout'

// 资料管理页面路由
const docRoutes = [
  {
    path: '/doc',
    component: Layout,
    alwaysShow: true,
    redirect: '/doc/article-list',
    name: 'Doc',
    meta: { title: '资料管理', icon: 'el-icon-s-management', roles: ['normal'], noCache: true, proxy: true, id: 6 },
    children: [
      {
        path: 'article-list',
        component: () => import('@/views/authentic/doc/articleList'),
        name: 'ArticleList',
        meta: { title: '文章列表', icon: 'el-icon-tickets', roles: ['normal'], noCache: true, proxy: true, id: 7 }
      },
      {
        path: 'article-edit',
        component: () => import('@/views/authentic/doc/articleEdit'),
        hidden: true,
        name: 'ArticleEdit',
        meta: { title: '编辑文章', icon: 'el-icon-menu', roles: ['normal'], noCache: true, proxy: true, id: 8 }
      },
      {
        path: 'image-list',
        component: () => import('@/views/authentic/doc/imageList'),
        name: 'ImageList',
        meta: {
          title: '图片列表',
          icon: 'el-icon-picture-outline',
          roles: ['normal'],
          noCache: true,
          proxy: true,
          id: 9
        }
      },
      {
        path: 'image-edit',
        component: () => import('@/views/authentic/doc/imageEdit'),
        hidden: true,
        name: 'ImageEdit',
        meta: { title: '编辑图片', icon: 'el-icon-menu', roles: ['normal'], noCache: true, proxy: true, id: 10 }
      },
      {
        path: 'video-list',
        component: () => import('@/views/authentic/doc/videoList'),
        name: 'VideoList',
        meta: { title: '视频列表', icon: 'el-icon-video-camera', roles: ['normal'], noCache: true, proxy: true, id: 11 }
      },
      {
        path: 'file-list',
        component: () => import('@/views/authentic/doc/fileList'),
        name: 'FileList',
        meta: { title: '文件列表', icon: 'el-icon-receiving', roles: ['normal'], noCache: true, proxy: true, id: 12 }
      }
    ]
  }
]

export default docRoutes
