fix: 修改汇总区块NaN

This commit is contained in:
wjh 2024-03-14 19:32:01 +08:00
parent df889eb647
commit 6e77717946

View File

@ -59,7 +59,7 @@ export const GroupBlock = (props) => {
if (service.loading && !field.loaded) {
return <Spin />;
}
const data = service.data?.data[0] ?? {};
const data = service.data?.data[0] ? { ...service.data?.data[0] } : {};
params?.config?.measures?.forEach((measuresItem) => {
const value = measuresItem.fieldFormat.fieldValue;