From 11d4f2de95a5508b5a0accd3d141b1ca22dde964 Mon Sep 17 00:00:00 2001 From: fanxb Date: Sat, 1 Feb 2020 23:51:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E6=8B=96=E6=8B=BD?= =?UTF-8?q?=E8=8A=82=E7=82=B9=EF=BC=8C=E9=A1=BA=E5=BA=8F=E9=94=99=E8=AF=AF?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/util/cacheUtil.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }