diff --git a/core/core-frontend/src/store/modules/data-visualization/copy.ts b/core/core-frontend/src/store/modules/data-visualization/copy.ts index 8eefad469e..0609115f42 100644 --- a/core/core-frontend/src/store/modules/data-visualization/copy.ts +++ b/core/core-frontend/src/store/modules/data-visualization/copy.ts @@ -118,7 +118,12 @@ export const copyStore = defineStore('copy', { } eventBus.emit('addDashboardItem-' + newComponent.canvasId, newComponent) } - + if (i === dataArray.length - 1) { + dvMainStore.setCurComponent({ + component: newComponent, + index: componentData.value.length - 1 + }) + } i++ } }, moveTime)