From 7608677520f06b1b2f89b24995a85f93b5318b6a Mon Sep 17 00:00:00 2001 From: jianneng-fit2cloud Date: Thu, 9 Jan 2025 10:01:06 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=9C=A8=E9=A2=84=E8=A7=88=E7=8A=B6=E6=80=81=E4=B8=8B=EF=BC=8C?= =?UTF-8?q?=E4=B8=8B=E8=BD=BD=E5=9B=BE=E8=A1=A8=E5=9B=BE=E7=89=87=E7=82=B9?= =?UTF-8?q?=E4=B8=80=E6=AC=A1=E4=B8=8B=E8=BD=BD=E4=B8=A4=E6=AC=A1=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 --- .../components/data-visualization/canvas/ComponentWrapper.vue | 4 +++- .../src/components/data-visualization/canvas/Shape.vue | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/core/core-frontend/src/components/data-visualization/canvas/ComponentWrapper.vue b/core/core-frontend/src/components/data-visualization/canvas/ComponentWrapper.vue index c202a8b69c..e072f0a346 100644 --- a/core/core-frontend/src/components/data-visualization/canvas/ComponentWrapper.vue +++ b/core/core-frontend/src/components/data-visualization/canvas/ComponentWrapper.vue @@ -165,8 +165,10 @@ const handleInnerMouseDown = e => { onMounted(() => { currentInstance = getCurrentInstance() + const methodName = 'componentImageDownload-' + config.value.id + useEmitt().emitter.off(methodName) useEmitt({ - name: 'componentImageDownload-' + config.value.id, + name: methodName, callback: () => { htmlToImage() } 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 0aa72d23e3..1e7803b5b6 100644 --- a/core/core-frontend/src/components/data-visualization/canvas/Shape.vue +++ b/core/core-frontend/src/components/data-visualization/canvas/Shape.vue @@ -1112,8 +1112,10 @@ onMounted(() => { // do stopAnimation }) settingAttribute() + const methodName = 'componentImageDownload-' + element.value.id + useEmitt().emitter.off(methodName) useEmitt({ - name: 'componentImageDownload-' + element.value.id, + name: methodName, callback: () => { htmlToImage() }