iframe.ts 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. import type { AppRouteModule } from '/@/router/types';
  2. import { PAGE_LAYOUT_COMPONENT } from '/@/router/constant';
  3. const IFrame = () => import('/@/views/sys/iframe/FrameBlank.vue');
  4. export default {
  5. layout: {
  6. path: '/frame',
  7. name: 'Frame',
  8. component: PAGE_LAYOUT_COMPONENT,
  9. redirect: '/frame/antv',
  10. meta: {
  11. icon: 'mdi:page-next-outline',
  12. title: '外部页面',
  13. },
  14. },
  15. routes: [
  16. {
  17. path: '/antv',
  18. name: 'Antv',
  19. component: IFrame,
  20. meta: {
  21. frameSrc: 'https://2x.antdv.com/docs/vue/introduce-cn/',
  22. title: 'antVue文档(内嵌)',
  23. afterCloseLoading: true,
  24. },
  25. },
  26. {
  27. path: '/doc',
  28. name: 'Doc',
  29. component: IFrame,
  30. meta: {
  31. frameSrc: 'https://vvbin.cn/doc-next/',
  32. title: '项目文档(内嵌)',
  33. afterCloseLoading: true,
  34. },
  35. },
  36. {
  37. path: '/docExternal',
  38. name: 'DocExternal',
  39. component: IFrame,
  40. meta: {
  41. externalLink: 'https://vvbin.cn/doc-next/',
  42. title: '项目文档(外链)',
  43. },
  44. },
  45. ],
  46. } as AppRouteModule;