vben.ts 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. import type { RouteRecordRaw } from 'vue-router';
  2. import { VBEN_GITHUB_URL, VBEN_LOGO } 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. icon: VBEN_LOGO,
  11. order: 9999,
  12. title: 'Vben Admin',
  13. },
  14. name: 'AboutLayout',
  15. path: '/vben-admin',
  16. redirect: '/vben-admin/about',
  17. children: [
  18. {
  19. name: 'VbenAbout',
  20. path: 'about',
  21. component: () => import('#/views/_essential/vben/about/index.vue'),
  22. meta: {
  23. badgeType: 'dot',
  24. icon: 'mdi:creative-commons',
  25. title: $t('page.vben.about'),
  26. },
  27. },
  28. {
  29. name: 'VbenDocument',
  30. path: 'document',
  31. component: IFrameView,
  32. meta: {
  33. icon: 'mdi:flame-circle',
  34. iframeSrc: 'https://doc.vvbin.cn/',
  35. keepAlive: true,
  36. title: $t('page.vben.document'),
  37. },
  38. },
  39. {
  40. name: 'VbenGithub',
  41. path: 'github',
  42. component: IFrameView,
  43. meta: {
  44. icon: 'mdi:github',
  45. link: VBEN_GITHUB_URL,
  46. title: 'Github',
  47. },
  48. },
  49. ],
  50. },
  51. ];
  52. export default routes;