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';
4
import { t } from '/@/hooks/web/useI18n';
陈文彬 authored
5
6
7
const IFrame = () => import('/@/views/sys/iframe/FrameBlank.vue');
8
const iframe: AppRouteModule = {
vben authored
9
10
11
  path: '/frame',
  name: 'Frame',
  component: LAYOUT,
12
  redirect: '/frame/doc',
vben authored
13
  meta: {
14
    orderNo: 1000,
15
    icon: 'ion:tv-outline',
16
    title: t('routes.demo.iframe.frame'),
陈文彬 authored
17
18
  },
vben authored
19
  children: [
陈文彬 authored
20
    {
21
22
      path: 'doc',
      name: 'Doc',
陈文彬 authored
23
24
      component: IFrame,
      meta: {
25
        frameSrc: 'https://doc.vvbin.cn/',
26
        title: t('routes.demo.iframe.doc'),
陈文彬 authored
27
28
29
      },
    },
    {
30
31
      path: 'antv',
      name: 'Antv',
陈文彬 authored
32
33
      component: IFrame,
      meta: {
34
        frameSrc: 'https://www.antdv.com/docs/vue/introduce-cn/',
35
        title: t('routes.demo.iframe.antv'),
陈文彬 authored
36
37
38
      },
    },
    {
39
      path: 'https://doc.vvbin.cn/',
陈文彬 authored
40
41
42
      name: 'DocExternal',
      component: IFrame,
      meta: {
43
        title: t('routes.demo.iframe.docExternal'),
陈文彬 authored
44
45
46
      },
    },
  ],
47
48
49
};

export default iframe;