forked from github/dataease
fix(查询组件): 修复数字默认值报错
This commit is contained in:
parent
37ae10328b
commit
5c24398bc9
@ -123,7 +123,13 @@ const getValueByDefaultValueCheckOrFirstLoad = (
|
||||
}
|
||||
|
||||
if (firstLoad && !selectValue?.length) {
|
||||
return defaultValueCheck ? defaultValue : multiple ? [] : ''
|
||||
return defaultValueCheck
|
||||
? Array.isArray(defaultValue)
|
||||
? defaultValue
|
||||
: [defaultValue]
|
||||
: multiple
|
||||
? []
|
||||
: ''
|
||||
}
|
||||
|
||||
return selectValue ? (Array.isArray(selectValue) ? selectValue : [selectValue]) : ''
|
||||
|
Loading…
Reference in New Issue
Block a user