fix: 由于 多路径字段获取值 (#2664) 处理 造成的 set value值为0||''时不成功的情况 (#2776)

This commit is contained in:
LanceJiang 2023-05-19 16:35:58 +08:00 committed by GitHub
parent c46b04d548
commit b13c4a81fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ export function useFormEvents({
fields.forEach((key) => {
const schema = unref(getSchema).find((item) => item.field === key);
let value = get(values, key);
const hasKey = !!get(values, key);
const hasKey = Reflect.has(values, key);
value = handleInputNumberValue(schema?.component, value);
const { componentProps } = schema || {};