This commit is contained in:
DESKTOP-FUDKNA8\znjsz
2024-02-28 15:14:02 +08:00
parent ca35a1768d
commit 544e42ac83
15 changed files with 142 additions and 33 deletions

View File

@@ -9,7 +9,16 @@ const store = useWsStore();
const chartChart = ref(null);
const chart = ref(null);
// 小时数据
const hourData = ref([]);
const hourData = ref([
// { hour: "0:1", data: 10 },
// { hour: "0:2", data: 13 },
// { hour: "0:3", data: 20 },
// { hour: "0:4", data: 12 },
// { hour: "0:5", data: 12 },
// { hour: "0:6", data: 11 },
// { hour: "0:7", data: 10 },
// { hour: "0:8", data: 1 },
]);
store.$subscribe((mutation, state) => {
if (
state.data2.lineHourList == undefined ||
@@ -41,6 +50,7 @@ function setupChart() {
onMounted(() => {
chartChart.value.classList.add("h-full");
// setupChart();
});
</script>