mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-26 00:26:20 +08:00
50 lines
1.0 KiB
TypeScript
50 lines
1.0 KiB
TypeScript
import type { AppRouteModule } from '/@/router/types';
|
|
|
|
import { LAYOUT } from '/@/router/constant';
|
|
import { t } from '/@/hooks/web/useI18n';
|
|
|
|
const IFrame = () => import('/@/views/sys/iframe/FrameBlank.vue');
|
|
|
|
const iframe: AppRouteModule = {
|
|
path: '/frame',
|
|
name: 'Frame',
|
|
component: LAYOUT,
|
|
redirect: '/frame/doc',
|
|
meta: {
|
|
orderNo: 1000,
|
|
icon: 'ion:tv-outline',
|
|
title: t('routes.demo.iframe.frame'),
|
|
},
|
|
|
|
children: [
|
|
{
|
|
path: 'doc',
|
|
name: 'Doc',
|
|
component: IFrame,
|
|
meta: {
|
|
frameSrc: 'https://doc.vvbin.cn/',
|
|
title: t('routes.demo.iframe.doc'),
|
|
},
|
|
},
|
|
{
|
|
path: 'antv',
|
|
name: 'Antv',
|
|
component: IFrame,
|
|
meta: {
|
|
frameSrc: 'https://www.antdv.com/docs/vue/introduce-cn/',
|
|
title: t('routes.demo.iframe.antv'),
|
|
},
|
|
},
|
|
{
|
|
path: 'https://doc.vvbin.cn/',
|
|
name: 'DocExternal',
|
|
component: IFrame,
|
|
meta: {
|
|
title: t('routes.demo.iframe.docExternal'),
|
|
},
|
|
},
|
|
],
|
|
};
|
|
|
|
export default iframe;
|