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 }