account.ts 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. import type { AppRouteRecordRaw } from '/@/router/types';
  2. import { t } from '/@/hooks/web/useI18n';
  3. import { LAYOUT } from '/@/router/constant';
  4. export const accountRoute: AppRouteRecordRaw = {
  5. path: '/account',
  6. name: 'Account',
  7. redirect: '/account/lists',
  8. component: LAYOUT,
  9. meta: {
  10. title: t('routes.dashboard.account'),
  11. icon: 'la:file-invoice-dollar',
  12. orderNo: 190,
  13. },
  14. children: [
  15. {
  16. path: 'lists',
  17. name: 'Lists',
  18. // component: () => import('/@/views/account/details/index.vue'),
  19. component: () => import('/@/views/account/lists.vue'),
  20. meta: {
  21. title: t('routes.dashboard.account'),
  22. icon:'carbon:user-profile-alt',
  23. hideChildrenInMenu: true,
  24. },
  25. },
  26. {
  27. path: 'details',
  28. name: 'Details',
  29. component: () => import('/@/views/account/details/index.vue'),
  30. meta: {
  31. title: t('routes.dashboard.details'),
  32. hideChildrenInMenu: true,
  33. // hideMenu: true,
  34. },
  35. },
  36. ],
  37. };
  38. export default accountRoute;