Commit 36a4a466 by 李伟康

refactor(chat): 移除配置加载器组件并清理代码

- 移除了 chat/body/index.tsx 中的无效代码逻辑
- 注释掉了 footer/index.tsx 中的配置加载器组件
- 清理了相关的导入和无用代码
- 优化了组件结构和代码可读性
1 parent 91d58a0d
...@@ -11,11 +11,6 @@ type ChatBodyProps = { ...@@ -11,11 +11,6 @@ type ChatBodyProps = {
const ChatBody: FC<ChatBodyProps> = ({ noChatInput }) => { const ChatBody: FC<ChatBodyProps> = ({ noChatInput }) => {
const { chatList } = useChatListContext() const { chatList } = useChatListContext()
const { customer_name } = useUrlParams() const { customer_name } = useUrlParams()
chatList.map(item => {
if (item.isAnswer && !item.content) {
item.content = '暂无返回数据请重试!'
}
})
return ( return (
<> <>
{chatList.map((item, index) => ( {chatList.map((item, index) => (
......
...@@ -21,7 +21,7 @@ const Footer: FC<FooterProps> = ({ isMobile, chatFooterRef, chatFooterInnerRef } ...@@ -21,7 +21,7 @@ const Footer: FC<FooterProps> = ({ isMobile, chatFooterRef, chatFooterInnerRef }
className={cn('absolute bottom-0 flex justify-center bg-chat-input-mask pb-4 w-full', s['footer-mask'])} className={cn('absolute bottom-0 flex justify-center bg-chat-input-mask pb-4 w-full', s['footer-mask'])}
ref={chatFooterRef}> ref={chatFooterRef}>
{/* 配置加载器 */} {/* 配置加载器 */}
<ConfigLoader /> {/* <ConfigLoader /> */}
<div <div
ref={chatFooterInnerRef} ref={chatFooterInnerRef}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!