From d17fd261fee38e07a3c279fdc06992e02b6c97d8 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Wed, 24 Jul 2024 11:20:59 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=B3=BB=E7=BB=9F=E8=AE=BE=E7=BD=AE):=20?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E5=AF=B9=E8=AF=9D=E6=8C=89=E9=92=AE=E6=8A=A5?= =?UTF-8?q?=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/views/copilot/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core-frontend/src/views/copilot/index.vue b/core/core-frontend/src/views/copilot/index.vue index 1b572ee930..44de40e519 100644 --- a/core/core-frontend/src/views/copilot/index.vue +++ b/core/core-frontend/src/views/copilot/index.vue @@ -152,7 +152,7 @@ const handleShowLeft = val => { const copilotChatLoading = ref(false) const inputRef = ref() const queryAnswer = (event?: KeyboardEvent) => { - if (event.keyCode === 13) { + if (event?.keyCode === 13) { event.preventDefault() } let copyAuestionInput = questionInput.value