fix: 修改汇总区块不格式化文本类型

This commit is contained in:
wjh 2024-04-07 10:34:32 +08:00
parent 8c71fbd5a2
commit a4ab6ff994

View File

@ -150,7 +150,8 @@ const tableItem = (configItem, result, service, params, api) => {
key: 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;
});
options.push(item);