dashboard.ts 863 B

12345678910111213141516171819202122232425262728293031323334353637
  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. },
  24. {
  25. path: 'workbench',
  26. name: 'Workbench',
  27. component: () => import('@/views/dashboard/workbench/index.vue'),
  28. meta: {
  29. title: t('routes.dashboard.workbench'),
  30. },
  31. },
  32. ],
  33. };
  34. export default dashboard;