mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
fix: 修复同步 store 使得表单默认值丢失的问题 (#8903)
This commit is contained in:
parent
5fe6a2e0bf
commit
90a3ad77c9
@ -258,7 +258,9 @@ export function HocStoreFactory(renderer: {
|
||||
store.initData(
|
||||
extendObject(
|
||||
props.data,
|
||||
store.hasRemoteData || store.path === 'page'
|
||||
// 有远程数据
|
||||
// 或者顶级 store
|
||||
store.hasRemoteData || !store.path.includes('/')
|
||||
? {
|
||||
...store.data,
|
||||
...props.data
|
||||
|
Loading…
Reference in New Issue
Block a user