Blame view

src/router/routes/modules/demo/iframe.ts 1.02 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
  path: '/frame',
  name: 'Frame',
  component: LAYOUT,
11
  redirect: '/frame/doc',
vben authored
12
13
  meta: {
    icon: 'mdi:page-next-outline',
14
    title: t('routes.demo.iframe.frame'),
陈文彬 authored
15
16
  },
vben authored
17
  children: [
陈文彬 authored
18
    {
19
20
      path: 'doc',
      name: 'Doc',
陈文彬 authored
21
22
      component: IFrame,
      meta: {
23
24
        frameSrc: 'https://vvbin.cn/doc-next/',
        title: t('routes.demo.iframe.doc'),
陈文彬 authored
25
26
27
      },
    },
    {
28
29
      path: 'antv',
      name: 'Antv',
陈文彬 authored
30
31
      component: IFrame,
      meta: {
32
33
        frameSrc: 'https://2x.antdv.com/docs/vue/introduce-cn/',
        title: t('routes.demo.iframe.antv'),
陈文彬 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;