fix(editor): 切换布局失效

This commit is contained in:
roymondchen 2022-03-18 17:12:42 +08:00 committed by jia000
parent 276b95a03c
commit 42f1789c10

View File

@ -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;
}