dashboard.ts 848 B

123456789101112131415161718192021222324252627282930313233343536
  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. icon: 'ion:grid-outline',
  11. title: t('routes.dashboard.dashboard'),
  12. },
  13. children: [
  14. {
  15. path: 'workbench',
  16. name: 'Workbench',
  17. component: () => import('/@/views/dashboard/workbench/index.vue'),
  18. meta: {
  19. title: t('routes.dashboard.workbench'),
  20. },
  21. },
  22. {
  23. path: 'analysis',
  24. name: 'Analysis',
  25. component: () => import('/@/views/dashboard/analysis/index.vue'),
  26. meta: {
  27. affix: true,
  28. title: t('routes.dashboard.analysis'),
  29. },
  30. },
  31. ],
  32. };
  33. export default dashboard;