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 ceae5afc13..1ecd9216ac 100644 --- a/core/core-frontend/src/components/data-visualization/canvas/CanvasCore.vue +++ b/core/core-frontend/src/components/data-visualization/canvas/CanvasCore.vue @@ -554,7 +554,11 @@ const handleContextMenu = e => { // 组件处于编辑状态的时候 如富文本 不弹出右键菜单 if (!curComponent.value || (curComponent.value && !curComponent.value.editing)) { - if (curComponent.value && ['VQuery'].includes(curComponent.value.component)) { + if ( + curComponent.value && + ['VQuery'].includes(curComponent.value.component) && + curComponent?.value['category'] === 'base' + ) { left = left * curBaseScale.value + 150 top = top * curBaseScale.value + curComponent.value.style.top * (1 - curBaseScale.value) } 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 b91d67790c..601daf7c89 100644 --- a/core/core-frontend/src/components/data-visualization/canvas/ComponentWrapper.vue +++ b/core/core-frontend/src/components/data-visualization/canvas/ComponentWrapper.vue @@ -181,8 +181,6 @@ onMounted(() => { }) const onClick = e => { - e.preventDefault() - e.stopPropagation() // 将当前点击组件的事件传播出去 eventBus.emit('componentClick') dvMainStore.setInEditorStatus(true) diff --git a/core/core-frontend/src/components/plugin/src/index.vue b/core/core-frontend/src/components/plugin/src/index.vue index 5b56d5a364..63110d9c1c 100644 --- a/core/core-frontend/src/components/plugin/src/index.vue +++ b/core/core-frontend/src/components/plugin/src/index.vue @@ -97,7 +97,7 @@ const storeCacheProxy = byteArray => { } const pluginProxy = ref(null) const invokeMethod = param => { - if (pluginProxy.value['invokeMethod']) { + if (pluginProxy.value && pluginProxy.value['invokeMethod']) { pluginProxy.value['invokeMethod'](param) } else if (param.methodName && pluginProxy.value[param.methodName]) { pluginProxy.value[param.methodName](param.args)