fix(仪表板): 移动端布局复制已添加至布局中的图表会直接进入左侧无需再布置

This commit is contained in:
dataeaseShu 2024-03-08 09:39:03 +08:00
parent 2c6b586554
commit 4b7c60c552

View File

@ -178,6 +178,7 @@ function deepCopyHelper(data, idMap) {
const newComponentId = generateID() const newComponentId = generateID()
idMap[data.id] = newComponentId idMap[data.id] = newComponentId
result.id = newComponentId result.id = newComponentId
result.inMobile = false
if (result.component === 'Group') { if (result.component === 'Group') {
result.propValue.forEach((component, i) => { result.propValue.forEach((component, i) => {
result.propValue[i] = deepCopyHelper(component, idMap) result.propValue[i] = deepCopyHelper(component, idMap)