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) { if (service.loading && !field.loaded) {
return <Spin />; return <Spin />;
} }
const data = service.data?.data[0] ?? {}; const data = service.data?.data[0] ? { ...service.data?.data[0] } : {};
params?.config?.measures?.forEach((measuresItem) => { params?.config?.measures?.forEach((measuresItem) => {
const value = measuresItem.fieldFormat.fieldValue; const value = measuresItem.fieldFormat.fieldValue;