diff --git a/core/core-frontend/src/views/chart/components/editor/index.vue b/core/core-frontend/src/views/chart/components/editor/index.vue index a3fc967996..19731d3b86 100644 --- a/core/core-frontend/src/views/chart/components/editor/index.vue +++ b/core/core-frontend/src/views/chart/components/editor/index.vue @@ -1944,7 +1944,7 @@ const drop = (ev: MouseEvent, type = 'xAxis') => { const targetId = ev.srcElement.offsetParent?.querySelector('.node-id_private')?.dataset?.id const index = view.value[type].findIndex(ele => ele.id === targetId && ele.id !== obj.id) if (index !== -1) { - view.value[type].splice(index + 1, 0, obj) + view.value[type].splice(index + 1 + i, 0, obj) } else { view.value[type].push(obj) }