2024-05-19 21:20:42 +08:00
|
|
|
import type { RouteRecordRaw } from 'vue-router';
|
|
|
|
|
2024-05-21 22:42:25 +08:00
|
|
|
import { BasicLayout, IFrameView } from '@/layouts';
|
2024-05-19 21:20:42 +08:00
|
|
|
|
2024-06-02 21:33:31 +08:00
|
|
|
const routes: RouteRecordRaw[] = [
|
2024-05-19 21:20:42 +08:00
|
|
|
{
|
2024-05-21 22:42:25 +08:00
|
|
|
component: BasicLayout,
|
2024-05-19 21:20:42 +08:00
|
|
|
meta: {
|
|
|
|
title: '外部页面',
|
|
|
|
},
|
|
|
|
name: 'Outside',
|
|
|
|
path: '/outside',
|
|
|
|
redirect: '/outside/document',
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
name: 'Document',
|
|
|
|
path: 'document',
|
|
|
|
component: IFrameView,
|
|
|
|
meta: {
|
|
|
|
iframeSrc: 'https://doc.vvbin.cn/',
|
|
|
|
// keepAlive: true,
|
|
|
|
title: '项目文档',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'IFrameView',
|
|
|
|
path: 'vue-document',
|
|
|
|
component: IFrameView,
|
|
|
|
meta: {
|
|
|
|
iframeSrc: 'https://cn.vuejs.org/',
|
|
|
|
keepAlive: true,
|
|
|
|
title: 'Vue 文档(缓存)',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
];
|
2024-06-02 21:33:31 +08:00
|
|
|
|
|
|
|
export default routes;
|