Merge pull request 'fix: 修改汇总区块不格式化文本类型' (#605) from fix-group into dev

Reviewed-on: daoyoucloud/tachycode#605
This commit is contained in:
sealday 2024-04-07 13:28:35 +08:00
commit 9331bf3c6d

View File

@ -150,7 +150,8 @@ const tableItem = (configItem, result, service, params, api) => {
key: index, key: index,
}; };
columns.forEach((colItem, index) => { columns.forEach((colItem, index) => {
const data = isNaN(value[index]) ? value[index] : fieldTransformers(configItem, value[index], api); const data =
typeof value[index] === 'string' ? value[index] : fieldTransformers(configItem, value[index], api);
item[colItem.dataIndex] = data; item[colItem.dataIndex] = data;
}); });
options.push(item); options.push(item);