From ead9ebd6eb45411d149f24b7b52b7edbae0ac266 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E6=9D=A8?= <666> Date: Tue, 26 Nov 2024 16:57:03 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E5=8A=A0=E4=B8=AA=E5=B9=B3?= =?UTF-8?q?=E5=9D=87=E6=97=B6=E9=95=BF=E5=88=A4=E6=96=AD=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/classTask/container/classOverview/timeAnalyse.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/renderer/src/views/classTask/container/classOverview/timeAnalyse.vue b/src/renderer/src/views/classTask/container/classOverview/timeAnalyse.vue index 75a79d5..99cb756 100644 --- a/src/renderer/src/views/classTask/container/classOverview/timeAnalyse.vue +++ b/src/renderer/src/views/classTask/container/classOverview/timeAnalyse.vue @@ -152,6 +152,7 @@ const getXValue = () => { watch(() => useOverview.tableList, () => { const time = useOverview.tableList.map(item => Number(item.timelength)) + if(time.length === 0) return; const avatarTime = time.reduce((acc, cur) => { return acc + cur },0) / time.length