import Layout from '@/layout'

const pictureRouter = {
  path: '/picture',
  component: Layout,
  redirect: 'noRedirect',
  name: 'pictureSet',
  meta: {
    title: '图库管理',
    icon: 'picture'
  },
  children: [
    {
      path: 'banner',
      component: () => import('@/pages/picture/banner'),
      name: 'picture_banner',
      meta: { title: '轮播图', noCache: true }
    },
    {
      path: 'goods',
      component: () => import('@/pages/picture/goods'),
      name: 'picture_goods',
      meta: { title: '商品图库', noCache: true }
    },
    {
      path: 'start',
      component: () => import('@/pages/picture/start'),
      name: 'picture_start',
      meta: { title: '启动页', noCache: true }
    },
    {
      path: 'auth',
      component: () => import('@/pages/picture/auth'),
      name: 'picture_auth',
      meta: { title: '授权书', noCache: true }
    }
  ]
}

export default pictureRouter
