product.ts 1012 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import type { AppRouteRecordRaw } from '/@/router/types';
  2. import { t } from '/@/hooks/web/useI18n';
  3. import { LAYOUT } from '/@/router/constant';
  4. export const ProductRoute: AppRouteRecordRaw = {
  5. path: '/product',
  6. name: 'Product',
  7. redirect: '/product/firmware',
  8. component: LAYOUT,
  9. meta: {
  10. title: t('routes.dashboard.product'),
  11. icon: 'la:file-invoice-dollar',
  12. orderNo: 90,
  13. },
  14. children: [
  15. {
  16. path: 'firmware',
  17. name: 'Firmware',
  18. component: () => import('/@/views/product/firmware/index.vue'),
  19. meta: {
  20. title: t('routes.dashboard.firmware'),
  21. },
  22. },
  23. {
  24. path: 'sdk',
  25. name: 'Sdk',
  26. component: () => import('/@/views/product/sdk/index.vue'),
  27. meta: {
  28. title: t('routes.dashboard.sdk'),
  29. },
  30. },
  31. {
  32. path: 'app',
  33. name: 'App',
  34. component: () => import('/@/views/product/app/index.vue'),
  35. meta: {
  36. title: t('routes.dashboard.app'),
  37. },
  38. },
  39. ],
  40. };
  41. export default ProductRoute;