router-a.ts 621 B

12345678910111213141516171819202122232425262728293031
  1. import type { RouteRecordRaw } from 'vue-router';
  2. import { LayoutA } from '#/layouts';
  3. import { $t } from '#/locales';
  4. const routes: RouteRecordRaw[] = [
  5. {
  6. component: LayoutA,
  7. meta: {
  8. icon: 'lucide:layout-dashboard',
  9. order: -1,
  10. title: $t('dashboard.title'),
  11. },
  12. name: 'Dashboard',
  13. path: '/',
  14. children: [
  15. {
  16. name: 'Home',
  17. path: '/home',
  18. component: () => import('#/views/dashboard/home/index.vue'),
  19. meta: {
  20. icon: 'carbon:workspace',
  21. title: $t('dashboard.home'),
  22. },
  23. },
  24. ],
  25. },
  26. ];
  27. export default routes;