import Layout from '@/layout'

const goodsRouter = {
  path: '/goods',
  component: Layout,
  redirect: 'noRedirect',
  name: 'goodsSet',
  meta: {
    title: '商品管理',
    icon: 'goods'
  },
  children: [
    {
      path: 'list',
      component: () => import('@/pages/goods/list'),
      name: 'goods_list',
      meta: { title: '商品列表', noCache: true }
    },
    {
      path: 'add',
      component: () => import('@/pages/goods/add'),
      name: 'goods_add',
      hidden: true,
      meta: { title: '添加商品', noCache: true }
    }
  ]
}

export default goodsRouter
