fix(过滤组件): 数据大屏过滤组件确定按钮保存失败 #10291

This commit is contained in:
dataeaseShu 2024-07-01 16:52:11 +08:00
parent 5b006d56a0
commit 6f81240a75

View File

@ -125,7 +125,8 @@ const getValueByDefaultValueCheckOrFirstLoad = (
if (firstLoad && !selectValue?.length) {
return defaultValueCheck ? defaultValue : multiple ? [] : ''
}
return selectValue || ''
return selectValue ? (Array.isArray(selectValue) ? selectValue : [selectValue]) : ''
}
export const useFilter = (curComponentId: string, firstLoad = false) => {