mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
优化 store 更新
This commit is contained in:
parent
6ecbf9585b
commit
a7f45b7089
@ -681,10 +681,10 @@ export function HocStoreFactory(renderer: {storeType: string; extendsData?: bool
|
||||
...store.data
|
||||
})
|
||||
);
|
||||
} else if (isObjectShallowModified(props.scope, nextProps.scope)) {
|
||||
} else if (props.scope !== nextProps.scope) {
|
||||
store.initData(
|
||||
createObject(nextProps.scope, {
|
||||
...nextProps.data,
|
||||
// ...nextProps.data,
|
||||
...store.data
|
||||
})
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user