From 29c2a7b854b4ad94bc50d10bea67fd209764968e Mon Sep 17 00:00:00 2001 From: jianneng-fit2cloud Date: Thu, 18 Sep 2025 11:16:38 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E6=8B=96=E5=8A=A8=E5=9B=BE=E8=A1=A8=E7=BC=A9?= =?UTF-8?q?=E7=95=A5=E8=BD=B4=E6=97=B6=EF=BC=8C=E5=9B=BE=E8=A1=A8=E9=80=89?= =?UTF-8?q?=E4=B8=AD=E7=8A=B6=E6=80=81=E8=A2=AB=E5=8F=96=E6=B6=88=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/data-visualization/canvas/Shape.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/core/core-frontend/src/components/data-visualization/canvas/Shape.vue b/core/core-frontend/src/components/data-visualization/canvas/Shape.vue index b2e95ac1e7..fdc687239b 100644 --- a/core/core-frontend/src/components/data-visualization/canvas/Shape.vue +++ b/core/core-frontend/src/components/data-visualization/canvas/Shape.vue @@ -519,7 +519,7 @@ const hasChartMouseEvent = () => { } const handleInnerMouseDownOnShape = e => { - if (!canvasActive.value || hasChartMouseEvent()) { + if (!canvasActive.value) { return } batchSelected(e) @@ -694,9 +694,10 @@ const handleMouseDownOnShape = e => { } handleGroupComponent() } - - document.addEventListener('mousemove', move) - document.addEventListener('mouseup', up) + if (!hasChartMouseEvent()) { + document.addEventListener('mousemove', move) + document.addEventListener('mouseup', up) + } } const selectCurComponent = e => {