dashboard.ts 936 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import type { RouteRecordRaw } from 'vue-router';
  2. import { BasicLayout } from '#/layouts';
  3. import { $t } from '#/locales';
  4. const routes: RouteRecordRaw[] = [
  5. {
  6. component: BasicLayout,
  7. meta: {
  8. icon: 'lucide:layout-dashboard',
  9. order: -1,
  10. title: $t('page.dashboard.title'),
  11. },
  12. name: 'Dashboard',
  13. path: '/',
  14. redirect: '/analytics',
  15. children: [
  16. {
  17. name: 'Analytics',
  18. path: '/analytics',
  19. component: () => import('#/views/dashboard/analytics/index.vue'),
  20. meta: {
  21. affixTab: true,
  22. icon: 'lucide:area-chart',
  23. title: $t('page.dashboard.analytics'),
  24. },
  25. },
  26. {
  27. name: 'Workspace',
  28. path: '/workspace',
  29. component: () => import('#/views/dashboard/workspace/index.vue'),
  30. meta: {
  31. title: $t('page.dashboard.workspace'),
  32. },
  33. },
  34. ],
  35. },
  36. ];
  37. export default routes;