mirror of
https://github.com/dataease/dataease.git
synced 2026-05-15 05:22:13 +08:00
fix(数据大屏): 修复批量复制粘贴时,聚焦组件多一个问题 (#17315)
This commit is contained in:
@@ -128,7 +128,10 @@ export const copyStore = defineStore('copy', {
|
||||
if (dvInfo.value.type === 'dashboard') {
|
||||
eventBus.emit('addDashboardItem-' + newComponent.canvasId, newComponent)
|
||||
}
|
||||
if (i === dataArray.length - 1) {
|
||||
if (
|
||||
i === dataArray.length - 1 &&
|
||||
(dataArray.length === 1 || (dataArray.length > 1 && dvInfo.value.type === 'dashboard'))
|
||||
) {
|
||||
dvMainStore.setCurComponent({
|
||||
component: newComponent,
|
||||
index: componentData.value.length - 1
|
||||
|
||||
Reference in New Issue
Block a user