Skip to content

Commit

Permalink
fix(editor): 切换布局失效
Browse files Browse the repository at this point in the history
  • Loading branch information
roymondchen authored and jia000 committed Mar 18, 2022
1 parent 276b95a commit 42f1789
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/editor/src/services/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ class Editor extends BaseService {

let newConfig = await this.toggleFixedPosition(toRaw(config), node, this.get<MApp>('root'));

newConfig = mergeWith(node, newConfig, (objValue, srcValue) => {
newConfig = mergeWith(cloneDeep(node), newConfig, (objValue, srcValue) => {
if (Array.isArray(srcValue)) {
return srcValue;
}
Expand Down

0 comments on commit 42f1789

Please sign in to comment.