forked from github/dataease
Merge pull request #8411 from dataease/pr@dev-v2_copy_mobile
fix(仪表板): 移动端布局复制已添加至布局中的图表会直接进入左侧无需再布置
This commit is contained in:
commit
6affa68a65
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user