设置菜单增加Harbor后台入口
This commit is contained in:
@@ -60,8 +60,7 @@ def mq_pull_analysis():
|
|||||||
ch.basic_ack(delivery_tag=method.delivery_tag)
|
ch.basic_ack(delivery_tag=method.delivery_tag)
|
||||||
|
|
||||||
channel.basic_consume(queue=QUEUE_NAME, on_message_callback=callback)
|
channel.basic_consume(queue=QUEUE_NAME, on_message_callback=callback)
|
||||||
print("开启队列消费者")
|
print("开启队列消费者,等待分析任务...")
|
||||||
print("等待分析任务...")
|
|
||||||
try:
|
try:
|
||||||
channel.start_consuming()
|
channel.start_consuming()
|
||||||
finally:
|
finally:
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import type { RouteRecordRaw } from 'vue-router';
|
import type { RouteRecordRaw } from 'vue-router';
|
||||||
|
|
||||||
|
import { IFrameView } from '#/layouts';
|
||||||
import { $t } from '#/locales';
|
import { $t } from '#/locales';
|
||||||
|
|
||||||
const routes: RouteRecordRaw[] = [
|
const routes: RouteRecordRaw[] = [
|
||||||
@@ -31,6 +32,17 @@ const routes: RouteRecordRaw[] = [
|
|||||||
title: $t('remote.remote'),
|
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 type { RouteRecordRaw } from 'vue-router';
|
||||||
|
//
|
||||||
import { $t } from '#/locales';
|
// import { $t } from '#/locales';
|
||||||
|
//
|
||||||
const IFrameView = () => import('@vben/layouts').then((m) => m.IFrameView);
|
// const IFrameView = () => import('@vben/layouts').then((m) => m.IFrameView);
|
||||||
|
//
|
||||||
const routes: RouteRecordRaw[] = [
|
// const routes: RouteRecordRaw[] = [
|
||||||
{
|
// {
|
||||||
meta: {
|
// meta: {
|
||||||
icon: 'ic:round-handyman',
|
// icon: 'ic:round-handyman',
|
||||||
keepAlive: false,
|
// keepAlive: false,
|
||||||
authority: ['user'],
|
// authority: ['user'],
|
||||||
order: 2,
|
// order: 2,
|
||||||
title: $t('其他平台'),
|
// title: $t('其他平台'),
|
||||||
},
|
// },
|
||||||
name: 'Out',
|
// name: 'Out',
|
||||||
path: '/out',
|
// path: '/out',
|
||||||
children: [
|
// children: [
|
||||||
{
|
// {
|
||||||
name: 'RAG',
|
// name: 'RAG',
|
||||||
path: '/out/rag',
|
// path: '/out/rag',
|
||||||
component: IFrameView,
|
// component: IFrameView,
|
||||||
meta: {
|
// meta: {
|
||||||
icon: 'mdi:wall-fire',
|
// icon: 'mdi:wall-fire',
|
||||||
iframeSrc: 'http://s1.ronsunny.cn:13010/',
|
// iframeSrc: 'http://s1.ronsunny.cn:13010/',
|
||||||
keepAlive: false,
|
// keepAlive: false,
|
||||||
title: 'RAG Flow',
|
// title: 'RAG Flow',
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
},
|
// },
|
||||||
];
|
// ];
|
||||||
|
//
|
||||||
export default routes;
|
// export default routes;
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
import type { RouteRecordRaw } from 'vue-router';
|
import type { RouteRecordRaw } from 'vue-router';
|
||||||
|
|
||||||
|
import { IFrameView } from '#/layouts';
|
||||||
import { $t } from '#/locales';
|
import { $t } from '#/locales';
|
||||||
|
|
||||||
const IFrameView = () => import('@vben/layouts').then((m) => m.IFrameView);
|
|
||||||
|
|
||||||
const routes: RouteRecordRaw[] = [
|
const routes: RouteRecordRaw[] = [
|
||||||
{
|
{
|
||||||
meta: {
|
meta: {
|
||||||
@@ -71,6 +70,17 @@ const routes: RouteRecordRaw[] = [
|
|||||||
title: 'RabbitMQ后台',
|
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后台',
|
||||||
|
},
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user