projects/mesxc-zhp #308

Merged
gtz217 merged 2 commits from projects/mesxc-zhp into projects/mesxc-test 2024-04-03 18:14:55 +08:00

View File

@ -1,7 +1,7 @@
<!--
* @Author: zhp
* @Date: 2023-12-27 13:54:52
* @LastEditTime: 2024-04-03 16:29:52
* @LastEditTime: 2024-04-03 18:12:18
* @LastEditors: zhp
* @Description:
-->
@ -138,7 +138,7 @@ export default {
// },
color:colors[sid],
data: rawData.length != 0 ? rawData[sid].map((d, did) =>
totalData[did] <= 0 ? 0 : d / totalData[did]
totalData[did] <= 0 ? 0 : (d / totalData[did]).toFixed(4)
) : []
};
});