iframe.ts 1.0 KB
Newer Older
陈文彬 已提交
1 2
import type { AppRouteModule } from '/@/router/types';

V
vben 已提交
3
import { LAYOUT } from '/@/router/constant';
V
vben 已提交
4
import { t } from '/@/hooks/web/useI18n';
陈文彬 已提交
5

V
vben 已提交
6 7
const IFrame = () => import('/@/views/sys/iframe/FrameBlank.vue');

V
vben 已提交
8
const iframe: AppRouteModule = {
V
vben 已提交
9 10 11
  path: '/frame',
  name: 'Frame',
  component: LAYOUT,
V
vben 已提交
12
  redirect: '/frame/doc',
V
vben 已提交
13
  meta: {
14
    orderNo: 1000,
V
Vben 已提交
15
    icon: 'ion:tv-outline',
V
vben 已提交
16
    title: t('routes.demo.iframe.frame'),
陈文彬 已提交
17 18
  },

V
vben 已提交
19
  children: [
陈文彬 已提交
20
    {
V
vben 已提交
21 22
      path: 'doc',
      name: 'Doc',
陈文彬 已提交
23 24
      component: IFrame,
      meta: {
25
        frameSrc: 'https://doc.vvbin.cn/',
V
vben 已提交
26
        title: t('routes.demo.iframe.doc'),
陈文彬 已提交
27 28 29
      },
    },
    {
V
vben 已提交
30 31
      path: 'antv',
      name: 'Antv',
陈文彬 已提交
32 33
      component: IFrame,
      meta: {
34
        frameSrc: 'https://www.antdv.com/docs/vue/introduce-cn/',
V
vben 已提交
35
        title: t('routes.demo.iframe.antv'),
陈文彬 已提交
36 37 38
      },
    },
    {
39
      path: 'https://doc.vvbin.cn/',
陈文彬 已提交
40 41 42
      name: 'DocExternal',
      component: IFrame,
      meta: {
V
vben 已提交
43
        title: t('routes.demo.iframe.docExternal'),
陈文彬 已提交
44 45 46
      },
    },
  ],
V
vben 已提交
47 48 49
};

export default iframe;