product.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* Layout */
  2. import Layout from '@/layout'
  3. // 商品管理
  4. const productRoutes = [
  5. {
  6. path: '/product',
  7. component: Layout,
  8. alwaysShow: true,
  9. redirect: '/product/list',
  10. hidden: true,
  11. name: 'Product',
  12. meta: { title: '商品管理', icon: 'el-icon-s-shop', roles: ['admin', 'normal'], noCache: true, id: 19 },
  13. children: [
  14. {
  15. hidden: true,
  16. path: 'list',
  17. component: () => import('@/views/authentic/product/index'),
  18. name: 'ProductList',
  19. meta: { title: '商品列表', icon: 'el-icon-menu', roles: ['admin', 'normal'], noCache: true, id: 20 }
  20. },
  21. {
  22. hidden: true,
  23. path: 'add',
  24. component: () => import('@/views/authentic/product/add'),
  25. name: 'AddProduct',
  26. meta: { title: '添加商品', icon: 'el-icon-menu', roles: ['normal'], noCache: true, proxy: true, id: 21 }
  27. },
  28. {
  29. hidden: true,
  30. path: 'edit',
  31. component: () => import('@/views/authentic/product/edit'),
  32. name: 'EditProduct',
  33. meta: { title: '修改商品', icon: 'el-icon-menu', roles: ['normal'], noCache: true, proxy: true, id: 22 }
  34. }
  35. ]
  36. }
  37. ]
  38. export default productRoutes