customer.ts 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. import type { AppRouteRecordRaw } from '/@/router/types';
  2. import { t } from '/@/hooks/web/useI18n';
  3. import { LAYOUT } from '/@/router/constant';
  4. export const customer: AppRouteRecordRaw = {
  5. path: '/customer',
  6. name: 'Customer',
  7. redirect: '/customer/index',
  8. component: LAYOUT,
  9. meta: {
  10. title: t('routes.dashboard.customer'),
  11. icon: 'raphael:customer',
  12. orderNo: 112,
  13. hideChildrenInMenu: true,
  14. },
  15. children: [
  16. {
  17. path: 'index',
  18. name: 'CustomerIndex',
  19. component: () => import('/@/views/customer/index.vue'),
  20. meta: {
  21. title: t('routes.dashboard.customer'),
  22. // icon: 'la:file-invoice-dollar',
  23. },
  24. },
  25. {
  26. path: 'device',
  27. name: 'Device',
  28. component: () => import('/@/views/customer/device.vue'),
  29. meta: {
  30. title: t('routes.dashboard.customerDevice'),
  31. // icon: 'la:file-invoice-dollar',
  32. },
  33. },
  34. {
  35. path: 'scene',
  36. name: 'Scene',
  37. component: () => import('/@/views/customer/scene.vue'),
  38. meta: {
  39. title: t('routes.dashboard.customerScene'),
  40. // icon: 'la:file-invoice-dollar',
  41. },
  42. },
  43. ],
  44. };
  45. export default customer;