From 58fed7b3f3786980cc1ba609c374158ef145c470 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Thu, 10 Oct 2024 16:53:05 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=95=B0=E6=8D=AE=E5=A4=A7=E5=B1=8F):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=BC=A0=E6=A0=87=E7=BD=AE=E9=A1=B6=E5=87=BA?= =?UTF-8?q?=E9=94=99=E9=97=AE=E9=A2=98=20#12593?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../core-frontend/src/store/modules/data-visualization/layer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core-frontend/src/store/modules/data-visualization/layer.ts b/core/core-frontend/src/store/modules/data-visualization/layer.ts index cd971f2568..9d86f0117e 100644 --- a/core/core-frontend/src/store/modules/data-visualization/layer.ts +++ b/core/core-frontend/src/store/modules/data-visualization/layer.ts @@ -40,7 +40,7 @@ export const layerStore = defineStore('layer', { if (curInfo) { const { index, componentData, targetComponent } = curInfo if (index < componentData.length - 1) { - componentData.splice(targetComponent, 1) + componentData.splice(index, 1) componentData.push(targetComponent) curComponentIndex.value = componentData.length - 1 }