diff --git a/front/src/util/cacheUtil.js b/front/src/util/cacheUtil.js index 10895a5..9df203c 100644 --- a/front/src/util/cacheUtil.js +++ b/front/src/util/cacheUtil.js @@ -140,7 +140,7 @@ export async function moveNode(info) { //移动节点相对于目标节点位置的增量 let addIndex = info.dropPosition > index ? 1 : 0; body.sort = target.sort + addIndex; - targetList.splice(addIndex, 0, current); + targetList.splice(index + addIndex, 0, current); for (let i = index + 1; i < targetList.length; i++) { targetList[i].sort += 1; }