diff --git a/snowy-admin-web/src/components/XnContextMenu/index.vue b/snowy-admin-web/src/components/XnContextMenu/index.vue index 9167ec86..b424c8de 100644 --- a/snowy-admin-web/src/components/XnContextMenu/index.vue +++ b/snowy-admin-web/src/components/XnContextMenu/index.vue @@ -68,11 +68,17 @@ }, // 右键事件事件处理 contextMenuHandler(e) { - this.x = e.clientX - this.y = e.clientY - this.layout() - this.$emit('update:show', true) - this.$emit('get-context-menu', e) + //兼容ie写法 + let obj = e.srcElement ? e.srcElement : e.target + let cs = obj.attributes['class'] + cs = cs ? cs.nodeValue : cs + if(cs&&cs!=='ant-tabs-tab-remove'){ + this.x = e.clientX + this.y = e.clientY + this.layout() + this.$emit('update:show', true) + this.$emit('get-context-menu', e) + } e.preventDefault() }, // 布局 diff --git a/snowy-admin-web/src/views/dev/file/index.vue b/snowy-admin-web/src/views/dev/file/index.vue index a485dc87..937abcd4 100644 --- a/snowy-admin-web/src/views/dev/file/index.vue +++ b/snowy-admin-web/src/views/dev/file/index.vue @@ -77,6 +77,7 @@ class="record-img" v-else-if="record.suffix === 'ppt' || record.suffix === 'pptx'" /> +