This commit is contained in:
Aresn 2019-03-04 16:44:18 +08:00 committed by GitHub
parent 7f035c372b
commit 442c42085b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -64,7 +64,8 @@
this.$refs.currentRowTable.clearCurrentRow(); this.$refs.currentRowTable.clearCurrentRow();
}, },
onDragDrop(a,b){ onDragDrop(a,b){
console.log(a,b) console.log(a,b);
this.data1.splice(b,1,...this.data1.splice(a, 1 , this.data1[b]));
} }
} }
} }