/* Layout */ import Layout from '@/layout' // 商品管理 const productRoutes = [ { path: '/product', component: Layout, alwaysShow: true, redirect: '/product/list', hidden: true, name: 'Product', meta: { title: '商品管理', icon: 'el-icon-s-shop', roles: ['admin', 'normal'], noCache: true, id: 19 }, children: [ { hidden: true, path: 'list', component: () => import('@/views/authentic/product/index'), name: 'ProductList', meta: { title: '商品列表', icon: 'el-icon-menu', roles: ['admin', 'normal'], noCache: true, id: 20 } }, { hidden: true, path: 'add', component: () => import('@/views/authentic/product/add'), name: 'AddProduct', meta: { title: '添加商品', icon: 'el-icon-menu', roles: ['normal'], noCache: true, proxy: true, id: 21 } }, { hidden: true, path: 'edit', component: () => import('@/views/authentic/product/edit'), name: 'EditProduct', meta: { title: '修改商品', icon: 'el-icon-menu', roles: ['normal'], noCache: true, proxy: true, id: 22 } } ] } ] export default productRoutes