fix: 修复因过滤组件复制导致定时报告编辑失败问题

This commit is contained in:
wangjiahao
2025-06-24 21:54:57 +08:00
committed by 王嘉豪
parent ce9dadfd6b
commit e05013ff76

View File

@@ -212,6 +212,11 @@ function deepCopyHelper(data, idMap) {
delete result.mEvents
delete result.mPropValue
delete result.mCommonBackground
if (result.component === 'VQuery') {
result.propValue?.forEach(queryItem => {
queryItem.id = generateID()
})
}
if (result.component === 'Group') {
result.propValue.forEach((component, i) => {
result.propValue[i] = deepCopyHelper(component, idMap)