mirror of
https://github.com/jekip/naive-ui-admin.git
synced 2026-02-08 23:42:27 +08:00
52 lines
1.1 KiB
TypeScript
52 lines
1.1 KiB
TypeScript
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: 8,
|
|
icon: renderIcon(DesktopOutline),
|
|
},
|
|
children: [
|
|
{
|
|
path: 'naive-admin',
|
|
name: 'naive-admin',
|
|
meta: {
|
|
title: 'NaiveAdmin',
|
|
frameSrc: 'https://www.naiveadmin.com',
|
|
},
|
|
component: IFrame,
|
|
},
|
|
{
|
|
path: 'docs',
|
|
name: 'frame-docs',
|
|
meta: {
|
|
title: '项目文档(内嵌)',
|
|
frameSrc: 'https://jekip.github.io/docs',
|
|
},
|
|
component: IFrame,
|
|
},
|
|
{
|
|
path: 'naive',
|
|
name: 'frame-naive',
|
|
meta: {
|
|
title: 'NaiveUi(内嵌)',
|
|
frameSrc: 'https://www.naiveui.com',
|
|
},
|
|
component: IFrame,
|
|
},
|
|
],
|
|
},
|
|
];
|
|
|
|
export default routes;
|