diff --git a/frontend/src/pages/Layout/menu.tsx b/frontend/src/pages/Layout/menu.tsx index f38297f..08bef72 100644 --- a/frontend/src/pages/Layout/menu.tsx +++ b/frontend/src/pages/Layout/menu.tsx @@ -2,7 +2,6 @@ import { FolderOpen, Tag, Target, - BookOpen, Shuffle, BarChart3, MessageSquare, @@ -70,13 +69,6 @@ export const menuItems = [ description: "质量分析、性能评估和偏见检测", color: "bg-indigo-500", }, - { - id: "knowledge-base", - title: "知识生成", - icon: BookOpen, - description: "面向RAG的知识库构建", - color: "bg-teal-500", - }, { id: "operator-market", title: "算子市场", diff --git a/frontend/src/pages/SettingsPage/SettingsPage.tsx b/frontend/src/pages/SettingsPage/SettingsPage.tsx index 4c938a1..84805b4 100644 --- a/frontend/src/pages/SettingsPage/SettingsPage.tsx +++ b/frontend/src/pages/SettingsPage/SettingsPage.tsx @@ -1,14 +1,11 @@ import { useState } from "react"; -import { Button, Menu } from "antd"; -import { SettingOutlined, ApiOutlined } from "@ant-design/icons"; -import { Component, X } from "lucide-react"; -import { useNavigate } from "react-router"; +import { Menu } from "antd"; +import { SettingOutlined } from "@ant-design/icons"; +import { Component } from "lucide-react"; import SystemConfig from "./SystemConfig"; import ModelAccess from "./ModelAccess"; -import WebhookConfig from "./WebhookConfig"; export default function SettingsPage() { - const navigate = useNavigate(); const [activeTab, setActiveTab] = useState("model-access"); return ( @@ -32,13 +29,6 @@ export default function SettingsPage() { icon: , label: "参数配置", }, - { - key: "webhook-config", - icon: , - label: "Webhook", - disabled: true, - title: "暂未开放" - }, ]} selectedKeys={[activeTab]} onClick={({ key }) => { @@ -51,7 +41,6 @@ export default function SettingsPage() { {/* 内容区域,根据 activeTab 渲染不同的组件 */} {activeTab === "system-config" && } {activeTab === "model-access" && } - {activeTab === "webhook-config" && } );