This commit is contained in:
DESKTOP-FUDKNA8\znjsz
2024-03-13 16:08:09 +08:00
parent d56efd1c2f
commit f9fc8e8c66
2 changed files with 4 additions and 8 deletions

View File

@@ -30,8 +30,8 @@ store.$subscribe((mutation, state) => {
}
hourData.value = (state.data2?.lineHourList ?? []).map((item, index) => ({
id: `${item.lineName}_${index}`,
hour: item.hour || `${index}`.padStart(2, "0"),
data: item.num || Math.floor(Math.random() * 100),
hour: item.hour || `__`,
data: item.num || 0,
}));
setupChart();
});