dashboard.ts 828 B

1234567891011121314151617181920212223242526272829303132333435
  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/workbench',
  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. title: t('routes.dashboard.analysis'),
  28. },
  29. },
  30. ],
  31. };
  32. export default dashboard;