From ee1599874ee4e5c7092e8dc8832abae2065803fc Mon Sep 17 00:00:00 2001 From: shaohuzhang1 Date: Thu, 27 Jun 2024 17:16:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dai=E5=AF=B9=E8=AF=9D?= =?UTF-8?q?=E8=8A=82=E7=82=B9=E4=B8=8B=E6=8B=89=E9=80=89=E6=BB=9A=E8=BD=AE?= =?UTF-8?q?=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/workflow/nodes/ai-chat-node/index.vue | 13 ++++++++++++- ui/src/workflow/nodes/question-node/index.vue | 13 ++++++++++++- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/ui/src/workflow/nodes/ai-chat-node/index.vue b/ui/src/workflow/nodes/ai-chat-node/index.vue index 6daa605b2..02e919eb0 100644 --- a/ui/src/workflow/nodes/ai-chat-node/index.vue +++ b/ui/src/workflow/nodes/ai-chat-node/index.vue @@ -25,6 +25,9 @@ }" > { + if (isKeyDown.value) { + e.preventDefault() + } else { + e.stopPropagation() + return true + } +} const { params: { id } } = app.config.globalProperties.$route as any diff --git a/ui/src/workflow/nodes/question-node/index.vue b/ui/src/workflow/nodes/question-node/index.vue index a1c4710b7..3247aa9b8 100644 --- a/ui/src/workflow/nodes/question-node/index.vue +++ b/ui/src/workflow/nodes/question-node/index.vue @@ -25,6 +25,9 @@ }" > { + if (isKeyDown.value) { + e.preventDefault() + } else { + e.stopPropagation() + return true + } +} const { params: { id } } = app.config.globalProperties.$route as any