条件判断逻辑处理

master
于肖磊 2025-01-22 16:06:09 +08:00
parent ea497a6838
commit 4867c68960
1 changed files with 1 additions and 1 deletions

View File

@ -211,7 +211,7 @@ export const custom_condition_data = (data_source_id, option, sourceList, isCust
data_value = data_handling(data_source_id, sourceList, isCustom);
}
// 根据配置选项,添加前缀和后缀到处理后的数据
return (option?.first || '') + data_value + (option?.last || '');
return Array.isArray(data_value) || typeof data_value === "object" ? data_value : ((option?.first || '') + data_value + (option?.last || ''));
}
/**