From 9356ee51ad4d462afdca7ca9cf4e6cbb350dd9e8 Mon Sep 17 00:00:00 2001
From: Jerry Yan <792602257@qq.com>
Date: Sun, 18 Jan 2026 18:01:19 +0800
Subject: [PATCH] =?UTF-8?q?feat(menu):=20=E7=A7=BB=E9=99=A4=E7=9F=A5?=
=?UTF-8?q?=E8=AF=86=E5=BA=93=E5=8A=9F=E8=83=BD=E5=85=A5=E5=8F=A3=E5=92=8C?=
=?UTF-8?q?Webhook=E9=85=8D=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 从菜单中移除知识生成相关的BookOpen图标
- 删除知识库功能的导航项及其相关配置
- 移除Webhook配置页面和对应的菜单选项
- 简化设置页面的导入依赖和组件结构
---
frontend/src/pages/Layout/menu.tsx | 8 --------
.../src/pages/SettingsPage/SettingsPage.tsx | 17 +++--------------
2 files changed, 3 insertions(+), 22 deletions(-)
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" && }
);