Commit b13c4a81fc7a9a008c58a48e19e5731cf31b153a
Committed by
GitHub
1 parent
c46b04d5
fix: 由于 多路径字段获取值 (#2664) 处理 造成的 set value值为0||''时不成功的情况 (#2776)
Showing
1 changed file
with
1 additions
and
1 deletions
src/components/Form/src/hooks/useFormEvents.ts
... | ... | @@ -113,7 +113,7 @@ export function useFormEvents({ |
113 | 113 | fields.forEach((key) => { |
114 | 114 | const schema = unref(getSchema).find((item) => item.field === key); |
115 | 115 | let value = get(values, key); |
116 | - const hasKey = !!get(values, key); | |
116 | + const hasKey = Reflect.has(values, key); | |
117 | 117 | |
118 | 118 | value = handleInputNumberValue(schema?.component, value); |
119 | 119 | const { componentProps } = schema || {}; | ... | ... |