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 62b1cff622..552dab01d3 100644 --- a/core/core-frontend/src/components/data-visualization/canvas/CanvasCore.vue +++ b/core/core-frontend/src/components/data-visualization/canvas/CanvasCore.vue @@ -497,6 +497,10 @@ const handleContextMenu = e => { // 组件处于编辑状态的时候 如富文本 不弹出右键菜单 if (!curComponent.value || (curComponent.value && !curComponent.value.editing)) { contextmenuStore.showContextMenu({ top, left, position: 'canvasCore' }) + const iconDom = document.getElementById('close-button') + if (iconDom) { + iconDom.click() + } } }