Skip to content
Snippets Groups Projects
Commit 45c65c81 authored by Pan's avatar Pan
Browse files

fix bug

parent 496b3335
No related branches found
No related tags found
No related merge requests found
......@@ -53,7 +53,7 @@
</el-table>
<div class='show-d'>默认顺序{{olderList}}</div>
<div class='show-d'>默认顺序 &nbsp; {{ olderList}}</div>
<div class='show-d'>拖拽后顺序{{newList}}</div>
</div>
......@@ -112,7 +112,7 @@
// handle: '.drag-handler',
onEnd: evt => {
const tempIndex = this.newList.splice(evt.oldIndex, 1)[0];
this.newList.splice(evt.newIndex, 1, tempIndex);
this.newList.splice(evt.newIndex, 0, tempIndex);
}
});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment