Skip to content

Commit

Permalink
fix: 修复同步 store 使得表单默认值丢失的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
2betop committed Nov 27, 2023
1 parent 7d28608 commit a29efca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/amis-core/src/WithStore.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a29efca

Please sign in to comment.