Blame view

src/router/routes/modules/demo/iframe.ts 1.03 KB
陈文彬 authored
1
2
import type { AppRouteModule } from '/@/router/types';
vben authored
3
import { LAYOUT } from '/@/router/constant';
陈文彬 authored
4
const IFrame = () => import('/@/views/sys/iframe/FrameBlank.vue');
5
import { t } from '/@/hooks/web/useI18n';
陈文彬 authored
6
7
const iframe: AppRouteModule = {
vben authored
8
9
10
11
12
13
  path: '/frame',
  name: 'Frame',
  component: LAYOUT,
  redirect: '/frame/antv',
  meta: {
    icon: 'mdi:page-next-outline',
14
    title: t('routes.demo.iframe.frame'),
陈文彬 authored
15
16
  },
vben authored
17
  children: [
陈文彬 authored
18
    {
vben authored
19
      path: 'antv',
陈文彬 authored
20
21
22
23
      name: 'Antv',
      component: IFrame,
      meta: {
        frameSrc: 'https://2x.antdv.com/docs/vue/introduce-cn/',
24
        title: t('routes.demo.iframe.antv'),
陈文彬 authored
25
26
27
      },
    },
    {
vben authored
28
      path: 'doc',
陈文彬 authored
29
30
31
      name: 'Doc',
      component: IFrame,
      meta: {
vben authored
32
        frameSrc: 'https://vvbin.cn/doc-next/',
33
        title: t('routes.demo.iframe.doc'),
陈文彬 authored
34
35
36
      },
    },
    {
37
      path: 'https://vvbin.cn/doc-next/',
陈文彬 authored
38
39
40
      name: 'DocExternal',
      component: IFrame,
      meta: {
41
        title: t('routes.demo.iframe.docExternal'),
陈文彬 authored
42
43
44
      },
    },
  ],
45
46
47
};

export default iframe;