fix: clone the values set to the editor #369 (#371)

This commit is contained in:
baseWalker
2023-12-21 19:53:09 +08:00
committed by GitHub
parent 7a6f656699
commit f73759fdd7
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -955,7 +955,7 @@ export class Draw {
}
public setValue(payload: Partial<IEditorData>) {
const { header, main, footer } = payload
const { header, main, footer } = deepClone(payload)
if (!header && !main && !footer) return
const pageComponentData = [header, main, footer]
pageComponentData.forEach(data => {