lsc %!s(int64=3) %!d(string=hai) anos
pai
achega
976c1603c0
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      src/components/pages/Grid.vue

+ 3 - 0
src/components/pages/Grid.vue

@@ -314,6 +314,9 @@ export default {
       }
     },
     handleDragEnd(e, items) {
+      if(!this.data[this.dragging]){
+        return;
+      }
        e.dataTransfer.effectAllowed = "move"; //为需要移动的元素设置dragstart事件
       if (this.draggingE == this.dragging) return;
       var newItems = [...JSON.parse(JSON.stringify(this.data))]; //拷贝一份数据进行交换操作。