diff --git a/frontend/src/components/MainLayout.vue b/frontend/src/components/MainLayout.vue index 950634b..accf1f0 100644 --- a/frontend/src/components/MainLayout.vue +++ b/frontend/src/components/MainLayout.vue @@ -43,6 +43,10 @@ 数据源管理 + + + 工具市场 + 模型配置管理 @@ -90,7 +94,7 @@ import { computed } from 'vue' import { useRouter, useRoute } from 'vue-router' import { useUserStore } from '@/stores/user' -import { Document, User, List, Connection, Setting, Star, Lock, Monitor, Bell, Grid, DataAnalysis } from '@element-plus/icons-vue' +import { Document, User, List, Connection, Setting, Star, Lock, Monitor, Bell, Grid, DataAnalysis, Tools } from '@element-plus/icons-vue' const router = useRouter() const route = useRoute() @@ -104,6 +108,7 @@ const activeMenu = computed(() => { if (route.path === '/agents' || route.path.startsWith('/agents/')) return 'agents' if (route.path === '/executions' || route.path.startsWith('/executions/')) return 'executions' if (route.path === '/data-sources') return 'data-sources' + if (route.path === '/tools') return 'tools' if (route.path === '/model-configs') return 'model-configs' if (route.path === '/node-templates') return 'node-templates' if (route.path === '/permissions') return 'permissions' @@ -127,6 +132,8 @@ const handleMenuSelect = (key: string) => { router.push('/executions') } else if (key === 'data-sources') { router.push('/data-sources') + } else if (key === 'tools') { + router.push('/tools') } else if (key === 'model-configs') { router.push('/model-configs') } else if (key === 'node-templates') { diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts index 2cb5174..7970243 100644 --- a/frontend/src/router/index.ts +++ b/frontend/src/router/index.ts @@ -112,6 +112,12 @@ const router = createRouter({ component: () => import('@/views/NodeTemplates.vue'), meta: { requiresAuth: true } }, + { + path: '/tools', + name: 'tools', + component: () => import('@/views/Tools.vue'), + meta: { requiresAuth: true } + }, { path: '/agent-chat', name: 'agent-chat', diff --git a/frontend/src/views/Tools.vue b/frontend/src/views/Tools.vue new file mode 100644 index 0000000..4b1fc6b --- /dev/null +++ b/frontend/src/views/Tools.vue @@ -0,0 +1,604 @@ + + + + +