Merge pull request #8411 from dataease/pr@dev-v2_copy_mobile

fix(仪表板): 移动端布局复制已添加至布局中的图表会直接进入左侧无需再布置
This commit is contained in:
dataeaseShu 2024-03-08 09:41:25 +08:00 committed by GitHub
commit 6affa68a65
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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)