未验证 提交 b41e3939 编写于 作者: H Henry Rao 提交者: GitHub

fix: 修复updateSchema之后会把已填值重置为defaultValue的问题 (#1792)

上级 23e09328
......@@ -118,7 +118,10 @@ export function useFormValues({
const { defaultValue } = item;
if (!isNullOrUnDef(defaultValue)) {
obj[item.field] = defaultValue;
formModel[item.field] = defaultValue;
if (formModel[item.field] === undefined) {
formModel[item.field] = defaultValue;
}
}
});
defaultValueRef.value = obj;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册