onEnd: ({ newIndex, oldIndex }) => {
this.prodList.splice(newIndex, 0, this.prodList.splice(oldIndex, 1)[0]);
const newArray = this.prodList.slice(0)
this.prodList = [] // 必须有此步骤,不然拖拽后回弹
this.$nextTick(function () {
this.prodList = newArray // 重新赋值,用新数据来刷新视图
console.log(this.prodList)
})
console.log('newIndex===', newIndex);
console.log('oldIndex===', oldIndex);
console.log('this.prodList===', this.prodList);
}