Blame view

src/router/routes/modules/demo/iframe.ts 1.04 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
  meta: {
13
    orderNo: 1000,
14
    icon: 'ion:tv-outline',
15
    title: t('routes.demo.iframe.frame'),
陈文彬 authored
16
17
  },
vben authored
18
  children: [
陈文彬 authored
19
    {
20
21
      path: 'doc',
      name: 'Doc',
陈文彬 authored
22
23
      component: IFrame,
      meta: {
24
25
        frameSrc: 'https://vvbin.cn/doc-next/',
        title: t('routes.demo.iframe.doc'),
陈文彬 authored
26
27
28
      },
    },
    {
29
30
      path: 'antv',
      name: 'Antv',
陈文彬 authored
31
32
      component: IFrame,
      meta: {
33
34
        frameSrc: 'https://2x.antdv.com/docs/vue/introduce-cn/',
        title: t('routes.demo.iframe.antv'),
陈文彬 authored
35
36
37
      },
    },
    {
38
      path: 'https://vvbin.cn/doc-next/',
陈文彬 authored
39
40
41
      name: 'DocExternal',
      component: IFrame,
      meta: {
42
        title: t('routes.demo.iframe.docExternal'),
陈文彬 authored
43
44
45
      },
    },
  ],
46
47
48
};

export default iframe;