| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- import { RouteRecordRaw } from 'vue-router';
- import { Layout } from '@/router/constant';
- import { DesktopOutline } from '@vicons/ionicons5';
- import { renderIcon } from '@/utils/index';
- const IFrame = () => import('@/views/iframe/index.vue');
- const routes: Array<RouteRecordRaw> = [
- {
- path: '/frame',
- name: 'Frame',
- redirect: '/frame/docs',
- component: Layout,
- meta: {
- title: '外部页面',
- sort: 9,
- icon: renderIcon(DesktopOutline),
- },
- children: [
- {
- path: 'docs',
- name: 'frame-docs',
- meta: {
- title: '项目文档(内嵌)',
- frameSrc: 'https://www.naiveadmin.com',
- },
- component: IFrame,
- },
- {
- path: 'element-plus',
- name: 'frame-element-plus',
- meta: {
- title: 'ElementPlus(内嵌)',
- frameSrc: 'https://element-plus.org',
- },
- component: IFrame,
- },
- ],
- },
- ];
- export default routes;
|