fix: do not rerender after editing the markdown

This commit is contained in:
jialin
2025-02-11 15:31:16 +08:00
parent 8ae031dbbd
commit 95f7f5535f
3 changed files with 28 additions and 12 deletions
@@ -123,6 +123,9 @@ const MessageBody: React.FC<MessageBodyProps> = ({
content: e.target.value,
uid: data.uid
});
if (data.role === Roles.Assistant) {
thinkerRef.current?.reset();
}
};
const handleDeleteLastImage = useCallback(() => {