fix: Correct handling of chatWithDevChat event

- Updated InputMessage component to set input value and trigger send event
- Replaced chat.commonMessage call with direct input manipulation
- Modified event handling to ensure proper dispatch of chat messages
This commit is contained in:
bobo 2024-06-18 15:13:59 +08:00
parent d9703da439
commit 9fcf526ec3

View File

@ -173,7 +173,8 @@ const InputMessage = observer((props: any) => {
messageUtil.registerHandler(
"chatWithDevChat",
(message: { command: string; message: string }) => {
chat.commonMessage(message.message, []);
input.setValue(message.message);
handleSendClick(event as any);
}
);
messageUtil.registerHandler(