diff --git a/src/components/common/drag-group/index.vue b/src/components/common/drag-group/index.vue index 06609a92..b503aa2d 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 (!e.target.className.includes('do-not-trigger') && !e.target.parentNode.className.includes('do-not-trigger')) { + 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')) { edit_close_processing(edit_index.value); edit_index.value = -1; } diff --git a/src/components/common/magic-cube/index.vue b/src/components/common/magic-cube/index.vue index 69311aa0..42116356 100644 --- a/src/components/common/magic-cube/index.vue +++ b/src/components/common/magic-cube/index.vue @@ -88,7 +88,7 @@ onUnmounted(() => { }); // 判断点击的是否是可以点击的区域,其他区域隐藏掉编辑属性 const outerClick = (e: any) => { - if (!e.target.className.includes('do-not-trigger')) { + if (!isEmpty(e.target.className) && !e.target.className.includes('do-not-trigger')) { clearSelecting(); } }; diff --git a/src/components/model-article-tabs/model-article-tabs-content.vue b/src/components/model-article-tabs/model-article-tabs-content.vue index fd549066..1accb1a4 100644 --- a/src/components/model-article-tabs/model-article-tabs-content.vue +++ b/src/components/model-article-tabs/model-article-tabs-content.vue @@ -28,7 +28,7 @@