From 3e41ca5587c2bf5dc883388b33705f06ba26b4d1 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Mon, 22 Jan 2024 10:59:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=95=B0=E6=8D=AE=E5=A4=A7=E5=B1=8F?= =?UTF-8?q?=E9=9D=9E=E5=9B=BE=E8=A1=A8=E7=BB=84=E4=BB=B6=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E4=BF=A1=E6=81=AF=E5=9B=9E=E8=BD=A6=E5=87=BA?= =?UTF-8?q?=E7=8E=B0=E8=B7=B3=E8=BD=AC=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/custom-component/common/CommonAttr.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/core-frontend/src/custom-component/common/CommonAttr.vue b/core/core-frontend/src/custom-component/common/CommonAttr.vue index 75314390db..7a805481d9 100644 --- a/core/core-frontend/src/custom-component/common/CommonAttr.vue +++ b/core/core-frontend/src/custom-component/common/CommonAttr.vue @@ -102,6 +102,12 @@ onMounted(() => { }) }) }) +const stopEvent = e => { + if (e && e.code === 'Enter') { + e.stopPropagation() + e.preventDefault() + } +}