diff --git a/packages/tree/src/tree.vue b/packages/tree/src/tree.vue index 5b1c1b4c4ec..e1d147038a5 100644 --- a/packages/tree/src/tree.vue +++ b/packages/tree/src/tree.vue @@ -447,7 +447,9 @@ this.$on('tree-node-drag-end', (event) => { const { draggingNode, dropType, dropNode } = dragState; event.preventDefault(); - event.dataTransfer.dropEffect = 'move'; + if (event.dataTransfer) { + event.dataTransfer.dropEffect = 'move'; + } if (draggingNode && dropNode) { const draggingNodeCopy = { data: draggingNode.node.data };