From 44ecf7e5c7c9a55b289bed4bfaa6118ba05ca67d Mon Sep 17 00:00:00 2001
From: zdl <3489966805@qq.com>
Date: Mon, 24 Nov 2025 15:47:23 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E5=8E=BB=E6=8E=89=E8=83=8C=E6=99=AF?=
=?UTF-8?q?=E7=BB=84=E4=BB=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../AgentChat/components/BackgroundEffects.js | 59 -------------------
src/views/AgentChat/index.js | 6 +-
2 files changed, 1 insertion(+), 64 deletions(-)
delete mode 100644 src/views/AgentChat/components/BackgroundEffects.js
diff --git a/src/views/AgentChat/components/BackgroundEffects.js b/src/views/AgentChat/components/BackgroundEffects.js
deleted file mode 100644
index f9dc6b1c..00000000
--- a/src/views/AgentChat/components/BackgroundEffects.js
+++ /dev/null
@@ -1,59 +0,0 @@
-// src/views/AgentChat/components/BackgroundEffects.js
-// 背景渐变装饰层组件
-
-import React from 'react';
-import { Box } from '@chakra-ui/react';
-
-/**
- * BackgroundEffects - 背景渐变装饰层
- *
- * 包含主背景渐变和两个装饰光效(右上紫色、左下蓝色)
- *
- * @returns {JSX.Element}
- */
-const BackgroundEffects = () => {
- return (
- <>
- {/* 主背景渐变层 */}
-
-
- {/* 右上角紫色光效 */}
-
-
- {/* 左下角蓝色光效 */}
-
- >
- );
-};
-
-export default BackgroundEffects;
diff --git a/src/views/AgentChat/index.js b/src/views/AgentChat/index.js
index 8531c823..4344a1c2 100644
--- a/src/views/AgentChat/index.js
+++ b/src/views/AgentChat/index.js
@@ -11,7 +11,6 @@ import { DEFAULT_MODEL_ID } from './constants/models';
import { DEFAULT_SELECTED_TOOLS } from './constants/tools';
// 拆分后的子组件
-import BackgroundEffects from './components/BackgroundEffects';
import LeftSidebar from './components/LeftSidebar';
import ChatArea from './components/ChatArea';
import RightSidebar from './components/RightSidebar';
@@ -105,9 +104,6 @@ const AgentChat = () => {
return (
- {/* 背景渐变装饰 */}
-
-
{/* 左侧栏 */}
{
onToggleRightSidebar={() => setIsRightSidebarOpen(true)}
onNewSession={createNewSession}
userAvatar={user?.avatar}
- messagesEndRef={messagesEndRef}
+ // messagesEndRef={messagesEndRef}
inputRef={inputRef}
fileInputRef={fileInputRef}
/>