From e75096d95a2cc8c428f0023dcffc983a33873506 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Fri, 17 May 2024 09:41:45 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E6=95=B0=E6=8D=AE=E5=A4=A7=E5=B1=8F):?= =?UTF-8?q?=20=E4=BC=98=E5=8C=96=E7=BB=84=E5=90=88=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=EF=BC=8C=E9=98=B2=E6=AD=A2=E7=BB=84=E5=90=88?= =?UTF-8?q?=E5=8F=B3=E9=94=AE=E8=8F=9C=E5=8D=95=E5=BC=B9=E5=87=BA=E5=81=8F?= =?UTF-8?q?=E7=A7=BB=E8=BF=87=E5=A4=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/data-visualization/canvas/CanvasCore.vue | 2 +- core/core-frontend/src/views/data-visualization/index.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/core-frontend/src/components/data-visualization/canvas/CanvasCore.vue b/core/core-frontend/src/components/data-visualization/canvas/CanvasCore.vue index a450434e39..2e924cb860 100644 --- a/core/core-frontend/src/components/data-visualization/canvas/CanvasCore.vue +++ b/core/core-frontend/src/components/data-visualization/canvas/CanvasCore.vue @@ -508,7 +508,7 @@ const handleContextMenu = e => { target = target.parentNode } - while (!target.className.includes('editor')) { + while (!target.className.includes('editor-main')) { left += target.offsetLeft top += target.offsetTop target = target.parentNode diff --git a/core/core-frontend/src/views/data-visualization/index.vue b/core/core-frontend/src/views/data-visualization/index.vue index 099675987d..93b1ddc04d 100644 --- a/core/core-frontend/src/views/data-visualization/index.vue +++ b/core/core-frontend/src/views/data-visualization/index.vue @@ -393,7 +393,7 @@ eventBus.on('handleNew', handleNew) @mouseup="deselectCurComponent" >