fix(仪表板): 修复移动端布局后仪表板无法继续向tab组件添加图表问题

This commit is contained in:
wangjiahao 2024-04-22 15:10:43 +08:00
parent 826100dd6e
commit a35c98b03e

View File

@ -264,6 +264,7 @@ const componentMoveIn = component => {
dvMainStore.setCurComponent({ component: null, index: null })
component.canvasId = element.value.id + '--' + tabItem.name
const refInstance = currentInstance.refs['tabCanvas_' + index][0]
if (refInstance) {
const matrixBase = refInstance.getBaseMatrixSize() //
canvasChangeAdaptor(component, matrixBase)
tabItem.componentData.push(component)
@ -275,6 +276,7 @@ const componentMoveIn = component => {
refInstance.addItemBox(component) //
})
}
}
})
}