dashboard.ts 900 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. import type { AppRouteModule } from '/@/router/types';
  2. import { LAYOUT } from '/@/router/constant';
  3. import { t } from '/@/hooks/web/useI18n';
  4. const dashboard: AppRouteModule = {
  5. path: '/dashboard',
  6. name: 'Dashboard',
  7. component: LAYOUT,
  8. redirect: '/dashboard/analysis',
  9. meta: {
  10. orderNo: 10,
  11. icon: 'ion:grid-outline',
  12. title: t('routes.dashboard.dashboard'),
  13. },
  14. children: [
  15. {
  16. path: 'analysis',
  17. name: 'Analysis',
  18. component: () => import('/@/views/dashboard/Analysis/index.vue'),
  19. meta: {
  20. // affix: true,
  21. title: t('routes.dashboard.analysis'),
  22. },
  23. ver: '1',
  24. },
  25. {
  26. path: 'workbench',
  27. name: 'Workbench',
  28. component: () => import('/@/views/dashboard/workbench/index.vue'),
  29. meta: {
  30. title: t('routes.dashboard.workbench'),
  31. },
  32. ver: '1',
  33. },
  34. ],
  35. };
  36. export default dashboard;