From c10e5a9ca460d238acdcec2def549281beb75c79 Mon Sep 17 00:00:00 2001 From: W <141542652+ooyyh@users.noreply.github.com> Date: Wed, 16 Apr 2025 10:42:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BF=AB=E6=8D=B7=E5=8A=A9=E6=89=8B?= =?UTF-8?q?=E5=8F=91=E8=B5=B7=E8=AF=A2=E9=97=AE=E5=90=8E=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E6=B8=85=E7=90=86=E6=8E=89=E8=BE=93=E5=85=A5=E6=A1=86=E5=86=85?= =?UTF-8?q?=E7=9A=84=E5=86=85=E5=AE=B9=20=20(#4907)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/src/windows/mini/home/HomeWindow.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/src/windows/mini/home/HomeWindow.tsx b/src/renderer/src/windows/mini/home/HomeWindow.tsx index 8152d856..332205a4 100644 --- a/src/renderer/src/windows/mini/home/HomeWindow.tsx +++ b/src/renderer/src/windows/mini/home/HomeWindow.tsx @@ -98,7 +98,6 @@ const HomeWindow: FC = () => { setRoute('chat') onSendMessage().then() focusInput() - setTimeout(() => setText(''), 100) } } } @@ -161,6 +160,7 @@ const HomeWindow: FC = () => { } EventEmitter.emit(EVENT_NAMES.SEND_MESSAGE, message) setIsFirstMessage(false) + setText('') // ✅ 清除输入框内容 }, 0) }, [content, defaultAssistant.id, defaultAssistant.topics]