vben.ts 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. import type { RouteRecordRaw } from 'vue-router';
  2. import { VBEN_DOC_URL, VBEN_GITHUB_URL, VBEN_LOGO_URL } from '@vben/constants';
  3. import { BasicLayout, IFrameView } from '#/layouts';
  4. import { $t } from '#/locales';
  5. const routes: RouteRecordRaw[] = [
  6. {
  7. component: BasicLayout,
  8. meta: {
  9. badgeType: 'dot',
  10. badgeVariants: 'destructive',
  11. icon: VBEN_LOGO_URL,
  12. order: 9999,
  13. title: $t('page.vben.title'),
  14. },
  15. name: 'VbenProject',
  16. path: '/vben-admin',
  17. children: [
  18. {
  19. name: 'VbenAbout',
  20. path: '/vben-admin/about',
  21. component: () => import('#/views/_core/vben/about/index.vue'),
  22. meta: {
  23. badgeType: 'dot',
  24. badgeVariants: 'destructive',
  25. icon: 'lucide:copyright',
  26. title: $t('page.vben.about'),
  27. },
  28. },
  29. {
  30. name: 'VbenDocument',
  31. path: '/vben-admin/document',
  32. component: IFrameView,
  33. meta: {
  34. icon: 'lucide:book-open-text',
  35. iframeSrc: VBEN_DOC_URL,
  36. keepAlive: true,
  37. title: $t('page.vben.document'),
  38. },
  39. },
  40. {
  41. name: 'VbenGithub',
  42. path: '/vben-admin/github',
  43. component: IFrameView,
  44. meta: {
  45. icon: 'mdi:github',
  46. link: VBEN_GITHUB_URL,
  47. title: 'Github',
  48. },
  49. },
  50. ],
  51. },
  52. ];
  53. export default routes;