onEnd(e){ if(e.newIndex==0){ const currentRow=list.splice(e.oldIndex,1);//拿到当前拖拽行 this.list.splice(1,0,currentRow);//拖拽到第一行的默认放到第二行 const list=JSON.parse(JSON.stringgify(this.list)); this.$nextTick(()=>{ this.list=list; }) } }