Skip to content

Commit

Permalink
fix(lib): 修复null值 不能重新赋值问题
Browse files Browse the repository at this point in the history
fix #245
  • Loading branch information
lljj-x committed Dec 10, 2022
1 parent 08c6cd5 commit 14abc97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export default {
}
});
} else {
setPathVal(this.rootFormData, this.curNodePath, newOptionData || curFormData);
setPathVal(this.rootFormData, this.curNodePath, newOptionData === undefined ? curFormData : newOptionData);
}

// 可添加一个配置通知外部这里变更
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export default {
}
});
} else {
setPathVal(props.rootFormData, props.curNodePath, newOptionData || curFormData);
setPathVal(props.rootFormData, props.curNodePath, newOptionData === undefined ? curFormData : newOptionData);
}
});

Expand Down

0 comments on commit 14abc97

Please sign in to comment.