vue-vben-admin/src/router/routes/modules/demo/iframe.ts

52 lines
1.1 KiB
TypeScript
Raw Normal View History

2020-09-28 20:19:10 +08:00
import type { AppRouteModule } from '/@/router/types';
import { PAGE_LAYOUT_COMPONENT } from '/@/router/constant';
const IFrame = () => import('/@/views/sys/iframe/FrameBlank.vue');
2020-11-12 23:15:11 +08:00
const iframe: AppRouteModule = {
2020-09-28 20:19:10 +08:00
layout: {
path: '/frame',
name: 'Frame',
component: PAGE_LAYOUT_COMPONENT,
redirect: '/frame/antv',
meta: {
2020-10-10 23:09:58 +08:00
icon: 'mdi:page-next-outline',
2020-09-28 20:19:10 +08:00
title: '外部页面',
},
},
routes: [
{
path: '/antv',
name: 'Antv',
component: IFrame,
meta: {
frameSrc: 'https://2x.antdv.com/docs/vue/introduce-cn/',
title: 'antVue文档(内嵌)',
afterCloseLoading: true,
2020-09-28 20:19:10 +08:00
},
},
{
path: '/doc',
name: 'Doc',
component: IFrame,
meta: {
2020-10-19 21:18:13 +08:00
frameSrc: 'https://vvbin.cn/doc-next/',
2020-09-28 20:19:10 +08:00
title: '项目文档(内嵌)',
afterCloseLoading: true,
2020-09-28 20:19:10 +08:00
},
},
{
path: '/docExternal',
name: 'DocExternal',
component: IFrame,
meta: {
2020-10-19 21:18:13 +08:00
externalLink: 'https://vvbin.cn/doc-next/',
2020-09-28 20:19:10 +08:00
title: '项目文档(外链)',
},
},
],
2020-11-12 23:15:11 +08:00
};
export default iframe;