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

// 授权管理页面
const helperRoutes = [
  {
    path: '/helper',
    component: Layout,
    alwaysShow: true,
    redirect: '/helper/video',
    name: 'Helper',
    meta: { title: '新手帮助', icon: 'el-icon-s-promotion', roles: ['admin', 'normal'], noCache: true, proxy: true },
    children: [
      {
        path: 'video',
        component: () => import('@/views/common/helper/video'),
        name: 'HelperVideo',
        meta: {
          title: '视频教程',
          icon: 'el-icon-menu',
          roles: ['admin', 'normal'],
          affix: false,
          noCache: true,
          proxy: false
        }
      },
      {
        path: 'document',
        component: () => import('@/views/common/helper/document'),
        name: 'HelperDocument',
        meta: {
          title: '文档教程',
          icon: 'el-icon-menu',
          roles: ['admin', 'normal'],
          affix: false,
          noCache: true,
          proxy: false
        }
      }
    ]
  }
]

export default helperRoutes
