diff --git a/src/components/common/drag-group/index.vue b/src/components/common/drag-group/index.vue index c04fb321..8bcce21a 100644 --- a/src/components/common/drag-group/index.vue +++ b/src/components/common/drag-group/index.vue @@ -47,7 +47,7 @@ onUnmounted(() => { const edit_index = ref(-1); // 判断点击的是否是可以点击的区域,其他区域隐藏掉编辑属性 const outerClick = (e: any) => { - if ((!isEmpty(e.target.className) && !e.target.className.includes('do-not-trigger')) || (!isEmpty(e.target.parentNode.className) && !e.target.parentNode.className.includes('do-not-trigger'))) { + if (!e.target.className.includes('do-not-trigger') && !e.target.parentNode.className.includes('do-not-trigger')) { edit_close_processing(edit_index.value); edit_index.value = -1; }