fix(数据大屏): 修复tab内右键菜单显示位置不准确问题

This commit is contained in:
wangjiahao 2024-08-27 14:20:57 +08:00
parent bfe3d1ba5b
commit 602c567894

View File

@ -491,7 +491,6 @@ const getSelectArea = () => {
} }
const handleContextMenu = e => { const handleContextMenu = e => {
console.log('====handleContextMenu===')
// //
if (dashboardActive.value || editMode.value === 'preview') { if (dashboardActive.value || editMode.value === 'preview') {
return return
@ -1363,11 +1362,7 @@ const linkageSetOpen = item => {
} }
const contextMenuShow = computed(() => { const contextMenuShow = computed(() => {
if (curComponent.value) { return isMainCanvas(canvasId.value)
return curComponent.value.canvasId === canvasId.value
} else {
return isMainCanvas(canvasId.value)
}
}) })
const markLineShow = computed(() => isMainCanvas(canvasId.value)) const markLineShow = computed(() => isMainCanvas(canvasId.value))