fix(editor): 切换布局失效

This commit is contained in:
roymondchen 2022-03-18 17:12:42 +08:00
parent d0febcbff7
commit 3b512d925f

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