dashboard.ts 875 B

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