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} />