完善前端项目
This commit is contained in:
@@ -2,6 +2,7 @@ import type { RouteRecordRaw } from 'vue-router';
|
||||
|
||||
import { $t } from '#/locales';
|
||||
|
||||
const IFrameView = () => import('@vben/layouts').then((m) => m.IFrameView);
|
||||
const routes: RouteRecordRaw[] = [
|
||||
{
|
||||
meta: {
|
||||
@@ -47,6 +48,17 @@ const routes: RouteRecordRaw[] = [
|
||||
},
|
||||
component: () => import('#/views/cv/ysa/index.vue'),
|
||||
},
|
||||
{
|
||||
name: 'CVAT',
|
||||
path: '/cv/cvat',
|
||||
component: IFrameView,
|
||||
meta: {
|
||||
icon: 'mdi:abjad-arabic',
|
||||
link: 'http://171.212.101.199:13013/',
|
||||
keepAlive: true,
|
||||
title: '标注平台入口',
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
@@ -6,7 +6,7 @@ const routes: RouteRecordRaw[] = [
|
||||
{
|
||||
meta: {
|
||||
icon: 'ic:baseline-view-in-ar',
|
||||
authority: ['bot', 'report'],
|
||||
authority: ['bot', 'report', 'service'],
|
||||
keepAlive: false,
|
||||
order: 2,
|
||||
title: $t('大语言模型'),
|
||||
@@ -19,22 +19,116 @@ const routes: RouteRecordRaw[] = [
|
||||
path: '/llm/bot',
|
||||
meta: {
|
||||
authority: ['bot'],
|
||||
icon: 'mdi:face-woman-shimmer',
|
||||
title: $t('智能体对话'),
|
||||
icon: 'mdi:face-agent',
|
||||
title: $t('通用智能体'),
|
||||
keepAlive: true,
|
||||
},
|
||||
component: () => import('#/views/llm/bot/index.vue'),
|
||||
},
|
||||
// 嵌套菜单
|
||||
{
|
||||
name: 'SDP',
|
||||
path: '/llm/report',
|
||||
meta: {
|
||||
authority: ['report'],
|
||||
icon: 'mdi:hoop-house',
|
||||
title: $t('智农观数阁'),
|
||||
keepAlive: false,
|
||||
authority: ['report'],
|
||||
},
|
||||
component: () => import('#/views/llm/report/index.vue'),
|
||||
name: 'SDP',
|
||||
path: '/llm/report',
|
||||
children: [
|
||||
{
|
||||
name: 'SDP-chat',
|
||||
path: '/llm/report/report-chat',
|
||||
meta: {
|
||||
authority: ['report'],
|
||||
icon: 'mdi:set-center',
|
||||
title: $t('报表中心'),
|
||||
keepAlive: true,
|
||||
},
|
||||
component: () => import('#/views/llm/report/report-chat/index.vue'),
|
||||
},
|
||||
{
|
||||
name: 'SDP-bot',
|
||||
path: '/llm/report/report-bot',
|
||||
meta: {
|
||||
authority: ['report-bot'],
|
||||
icon: 'mdi:face-woman-shimmer',
|
||||
title: $t('智能体'),
|
||||
keepAlive: true,
|
||||
},
|
||||
component: () => import('#/views/llm/report/report-bot/index.vue'),
|
||||
},
|
||||
{
|
||||
name: 'SDP-data',
|
||||
path: '/llm/report/report-data',
|
||||
meta: {
|
||||
authority: ['report-data'],
|
||||
icon: 'ic:round-settings',
|
||||
title: $t('数据源'),
|
||||
keepAlive: true,
|
||||
},
|
||||
component: () => import('#/views/llm/report/report-data/index.vue'),
|
||||
},
|
||||
],
|
||||
},
|
||||
// 嵌套菜单
|
||||
{
|
||||
meta: {
|
||||
icon: 'mdi:greenhouse',
|
||||
title: $t('灵思智服阁'),
|
||||
authority: ['service'],
|
||||
},
|
||||
name: 'CSC',
|
||||
path: '/llm/service',
|
||||
children: [
|
||||
{
|
||||
name: 'CSC-chat',
|
||||
path: '/llm/service/service-chat',
|
||||
meta: {
|
||||
authority: ['service'],
|
||||
icon: 'mdi:android-head',
|
||||
title: $t('灵思对话'),
|
||||
keepAlive: true,
|
||||
},
|
||||
component: () =>
|
||||
import('#/views/llm/service/service-chat/index.vue'),
|
||||
},
|
||||
{
|
||||
name: 'CSC-bot',
|
||||
path: '/llm/service/service-bot',
|
||||
meta: {
|
||||
authority: ['service-bot'],
|
||||
icon: 'mdi:face-woman',
|
||||
title: $t('智能体'),
|
||||
keepAlive: true,
|
||||
},
|
||||
component: () =>
|
||||
import('#/views/llm/service/service-bot/index.vue'),
|
||||
},
|
||||
{
|
||||
name: 'CSC-knowledge',
|
||||
path: '/llm/service/service-knowledge',
|
||||
meta: {
|
||||
authority: ['service-knowledge'],
|
||||
icon: 'ic:round-book',
|
||||
title: $t('知识库'),
|
||||
keepAlive: true,
|
||||
},
|
||||
component: () =>
|
||||
import('#/views/llm/service/service-knowledge/index.vue'),
|
||||
},
|
||||
{
|
||||
name: 'CSC-mem',
|
||||
path: '/llm/service/service-mem',
|
||||
meta: {
|
||||
authority: ['service-mem'],
|
||||
icon: 'mdi:brain',
|
||||
title: $t('记忆库'),
|
||||
keepAlive: true,
|
||||
},
|
||||
component: () =>
|
||||
import('#/views/llm/service/service-mem/index.vue'),
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -24,18 +24,7 @@ const routes: RouteRecordRaw[] = [
|
||||
icon: 'mdi:wall-fire',
|
||||
iframeSrc: 'http://s1.ronsunny.cn:13010/',
|
||||
keepAlive: false,
|
||||
title: '检索增强生成',
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'CVAT',
|
||||
path: '/out/cvat',
|
||||
component: IFrameView,
|
||||
meta: {
|
||||
icon: 'mdi:abjad-arabic',
|
||||
link: 'http://171.212.101.199:13013/',
|
||||
keepAlive: true,
|
||||
title: '标注平台入口',
|
||||
title: 'RAG Flow',
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user