设置菜单增加Harbor后台入口

This commit is contained in:
BBIT-Kai
2025-10-14 09:14:43 +08:00
parent c1f4386747
commit 111be55c1d
4 changed files with 59 additions and 38 deletions
@@ -1,5 +1,6 @@
import type { RouteRecordRaw } from 'vue-router';
import { IFrameView } from '#/layouts';
import { $t } from '#/locales';
const routes: RouteRecordRaw[] = [
@@ -31,6 +32,17 @@ const routes: RouteRecordRaw[] = [
title: $t('remote.remote'),
},
},
{
name: 'RAG',
path: '/out/rag',
component: IFrameView,
meta: {
icon: 'mdi:wall-fire',
iframeSrc: 'http://s1.ronsunny.cn:13010/',
keepAlive: false,
title: 'RAG Flow',
},
},
],
},
];
@@ -1,34 +1,34 @@
import type { RouteRecordRaw } from 'vue-router';
import { $t } from '#/locales';
const IFrameView = () => import('@vben/layouts').then((m) => m.IFrameView);
const routes: RouteRecordRaw[] = [
{
meta: {
icon: 'ic:round-handyman',
keepAlive: false,
authority: ['user'],
order: 2,
title: $t('其他平台'),
},
name: 'Out',
path: '/out',
children: [
{
name: 'RAG',
path: '/out/rag',
component: IFrameView,
meta: {
icon: 'mdi:wall-fire',
iframeSrc: 'http://s1.ronsunny.cn:13010/',
keepAlive: false,
title: 'RAG Flow',
},
},
],
},
];
export default routes;
// import type { RouteRecordRaw } from 'vue-router';
//
// import { $t } from '#/locales';
//
// const IFrameView = () => import('@vben/layouts').then((m) => m.IFrameView);
//
// const routes: RouteRecordRaw[] = [
// {
// meta: {
// icon: 'ic:round-handyman',
// keepAlive: false,
// authority: ['user'],
// order: 2,
// title: $t('其他平台'),
// },
// name: 'Out',
// path: '/out',
// children: [
// {
// name: 'RAG',
// path: '/out/rag',
// component: IFrameView,
// meta: {
// icon: 'mdi:wall-fire',
// iframeSrc: 'http://s1.ronsunny.cn:13010/',
// keepAlive: false,
// title: 'RAG Flow',
// },
// },
// ],
// },
// ];
//
// export default routes;
@@ -1,9 +1,8 @@
import type { RouteRecordRaw } from 'vue-router';
import { IFrameView } from '#/layouts';
import { $t } from '#/locales';
const IFrameView = () => import('@vben/layouts').then((m) => m.IFrameView);
const routes: RouteRecordRaw[] = [
{
meta: {
@@ -71,6 +70,17 @@ const routes: RouteRecordRaw[] = [
title: 'RabbitMQ后台',
},
},
{
name: 'Harbor-webui',
path: '/set/Harbor',
component: IFrameView,
meta: {
icon: 'mdi:monitor-dashboard',
link: 'http://10.10.10.9:13011',
keepAlive: true,
title: 'Harbor后台',
},
},
],
},
];