diff --git a/src/components/AppDrag.vue b/src/components/AppDrag.vue index 22f0cff..8ac836e 100644 --- a/src/components/AppDrag.vue +++ b/src/components/AppDrag.vue @@ -22,7 +22,7 @@ export default { e.dataTransfer.effectAllowed = 'move' e.dataTransfer.dropEffect = 'move' - e.dataTransfer.setData('payload', JSON.stringify(this.transferData)) + e.dataTransfer.setData('text', JSON.stringify(this.transferData)) } } } diff --git a/src/components/AppDrop.vue b/src/components/AppDrop.vue index 2393f30..d49727f 100644 --- a/src/components/AppDrop.vue +++ b/src/components/AppDrop.vue @@ -12,7 +12,7 @@ export default { methods: { onDrop (e) { - const transferData = JSON.parse(e.dataTransfer.getData('payload')) + const transferData = JSON.parse(e.dataTransfer.getData('text')) this.$emit('drop', transferData) }