diff --git a/src/views/chat/index.vue b/src/views/chat/index.vue index b34d39e..f5e1c36 100644 --- a/src/views/chat/index.vue +++ b/src/views/chat/index.vue @@ -305,6 +305,12 @@ function handleEnter(event: KeyboardEvent) { handleSubmit() } } + else { + if (event.key === 'Enter' && event.ctrlKey) { + event.preventDefault() + handleSubmit() + } + } } function handleStop() {