fix: 修复同步 store 使得表单默认值丢失的问题 (#8903)

This commit is contained in:
liaoxuezhi 2023-11-27 14:43:08 +08:00 committed by GitHub
parent 5fe6a2e0bf
commit 90a3ad77c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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