Skip to content

Commit 1e5628b

Browse files
committed
fix: bug fix
1 parent 52a5e07 commit 1e5628b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

frontend/src/views/chat/index.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@
296296
type="textarea"
297297
:autosize="{ minRows: 1, maxRows: 8.583 }"
298298
:placeholder="t('qa.question_placeholder')"
299-
@keydown.enter.exact.prevent="sendMessage"
299+
@keydown.enter.exact.prevent="($event: any) => sendMessage($event)"
300300
@keydown.ctrl.enter.exact.prevent="handleCtrlEnter"
301301
/>
302302

@@ -551,7 +551,10 @@ const assistantPrepareSend = async () => {
551551
}
552552
}
553553
}
554-
const sendMessage = async () => {
554+
const sendMessage = async ($event: any = {}) => {
555+
if ($event?.isComposing) {
556+
return
557+
}
555558
if (!inputMessage.value.trim()) return
556559
557560
loading.value = true

0 commit comments

Comments
 (0)