fix: input text

This commit is contained in:
kangfenmao 2024-08-17 21:30:28 +08:00
parent 42327836de
commit 3ccebb503f

View File

@ -70,6 +70,7 @@ const Inputbar: FC<Props> = ({ assistant, setActiveTopic }) => {
EventEmitter.emit(EVENT_NAMES.SEND_MESSAGE, message)
setText('')
setTimeout(() => setText(''), 500)
setExpend(false)
}, [assistant.id, assistant.topics, generating, text])