forked from AkkomaGang/admin-fe
fix bug
This commit is contained in:
parent
496b33354c
commit
45c65c816f
1 changed files with 2 additions and 2 deletions
|
@ -53,7 +53,7 @@
|
||||||
|
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
||||||
<div class='show-d'>默认顺序{{olderList}}</div>
|
<div class='show-d'>默认顺序 {{ olderList}}</div>
|
||||||
<div class='show-d'>拖拽后顺序{{newList}}</div>
|
<div class='show-d'>拖拽后顺序{{newList}}</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
@ -112,7 +112,7 @@
|
||||||
// handle: '.drag-handler',
|
// handle: '.drag-handler',
|
||||||
onEnd: evt => {
|
onEnd: evt => {
|
||||||
const tempIndex = this.newList.splice(evt.oldIndex, 1)[0];
|
const tempIndex = this.newList.splice(evt.oldIndex, 1)[0];
|
||||||
this.newList.splice(evt.newIndex, 1, tempIndex);
|
this.newList.splice(evt.newIndex, 0, tempIndex);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue