product.ts 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. import type { AppRouteModule } from '/@/router/types';
  2. import { LAYOUT } from '/@/router/constant';
  3. import { t } from '/@/hooks/web/useI18n';
  4. const product: AppRouteModule = {
  5. path: '/product',
  6. name: 'Product',
  7. component: LAYOUT,
  8. redirect: '/product/index',
  9. meta: {
  10. icon: 'dashicons:products',
  11. title: t('routes.dashboard.product'),
  12. orderNo: 102,
  13. },
  14. children: [
  15. {
  16. path: 'ref',
  17. name: 'ProductRef',
  18. component: () => import('/@/views/dashboard/product/ref.vue'),
  19. meta: {
  20. title: t('routes.dashboard.productRef'),
  21. icon: 'gridicons:product-virtual',
  22. },
  23. },
  24. {
  25. path: 'list',
  26. name: 'ProductList',
  27. component: () => import('/@/views/product/list.vue'),
  28. meta: {
  29. title: t('routes.dashboard.productList'),
  30. icon: 'ic:sharp-list-alt',
  31. },
  32. },
  33. {
  34. path: 'category',
  35. name: 'productCategory',
  36. component: () => import('/@/views/product/category.vue'),
  37. meta: {
  38. title: t('routes.dashboard.productCategory'),
  39. icon: 'ic:baseline-category',
  40. },
  41. },
  42. ],
  43. };
  44. export default product;