mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-28 00:42:12 +08:00
initial commit
This commit is contained in:
47
src/router/routes/modules/demo/iframe.ts
Normal file
47
src/router/routes/modules/demo/iframe.ts
Normal file
@@ -0,0 +1,47 @@
|
||||
import type { AppRouteModule } from '/@/router/types';
|
||||
|
||||
import { PAGE_LAYOUT_COMPONENT } from '/@/router/constant';
|
||||
const IFrame = () => import('/@/views/sys/iframe/FrameBlank.vue');
|
||||
|
||||
export default {
|
||||
layout: {
|
||||
path: '/frame',
|
||||
name: 'Frame',
|
||||
component: PAGE_LAYOUT_COMPONENT,
|
||||
redirect: '/frame/antv',
|
||||
meta: {
|
||||
icon: 'ant-design:home-outlined',
|
||||
title: '外部页面',
|
||||
},
|
||||
},
|
||||
|
||||
routes: [
|
||||
{
|
||||
path: '/antv',
|
||||
name: 'Antv',
|
||||
component: IFrame,
|
||||
meta: {
|
||||
frameSrc: 'https://2x.antdv.com/docs/vue/introduce-cn/',
|
||||
title: 'antVue文档(内嵌)',
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/doc',
|
||||
name: 'Doc',
|
||||
component: IFrame,
|
||||
meta: {
|
||||
frameSrc: 'https://vvbin.cn/docs/',
|
||||
title: '项目文档(内嵌)',
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/docExternal',
|
||||
name: 'DocExternal',
|
||||
component: IFrame,
|
||||
meta: {
|
||||
externalLink: 'https://vvbin.cn/docs/',
|
||||
title: '项目文档(外链)',
|
||||
},
|
||||
},
|
||||
],
|
||||
} as AppRouteModule;
|
Reference in New Issue
Block a user