dashboard.ts 944 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. children: [
  15. {
  16. name: 'Analytics',
  17. path: '/analytics',
  18. component: () => import('#/views/dashboard/analytics/index.vue'),
  19. meta: {
  20. affixTab: true,
  21. icon: 'lucide:area-chart',
  22. title: $t('page.dashboard.analytics'),
  23. },
  24. },
  25. {
  26. name: 'Workspace',
  27. path: '/workspace',
  28. component: () => import('#/views/dashboard/workspace/index.vue'),
  29. meta: {
  30. icon: 'carbon:workspace',
  31. title: $t('page.dashboard.workspace'),
  32. },
  33. },
  34. ],
  35. },
  36. ];
  37. export default routes;