diff --git a/src/frontend/src/components/bs-comp/chatComponent/MessageBs.tsx b/src/frontend/src/components/bs-comp/chatComponent/MessageBs.tsx index 1e1dcb00f..c62e2c01a 100644 --- a/src/frontend/src/components/bs-comp/chatComponent/MessageBs.tsx +++ b/src/frontend/src/components/bs-comp/chatComponent/MessageBs.tsx @@ -3,7 +3,7 @@ import { LoadIcon } from "@/components/bs-icons/loading"; import { CodeBlock } from "@/modals/formModal/chatMessage/codeBlock"; import { ChatMessageType } from "@/types/chat"; import { copyText } from "@/utils"; -import { useMemo, useRef } from "react"; +import { useMemo, useRef, useState } from "react"; import ReactMarkdown from "react-markdown"; import rehypeMathjax from "rehype-mathjax"; import remarkGfm from "remark-gfm"; @@ -11,6 +11,7 @@ import remarkMath from "remark-math"; import MessageButtons from "./MessageButtons"; import SourceEntry from "./SourceEntry"; import { useMessageStore } from "./messageStore"; +import { isSameDay } from "@/util/utils"; // 颜色列表 const colorList = [ @@ -76,11 +77,17 @@ export default function MessageBs({ data, onUnlike = () => { }, onSource }: { da } const chatId = useMessageStore(state => state.chatId) + const [show, setShow] = useState(false) - return
{data.sender}
} -{useName}
} -- - {chat.flow_name} -
- {chat.flow_description} -{chat.flow_name}
+