From d90aa880abb645b0bd9c4783179b52f81fc9e37b Mon Sep 17 00:00:00 2001 From: LokerL Date: Tue, 3 Dec 2024 17:44:31 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix:=20=E5=A4=84=E7=90=86?= =?UTF-8?q?=E6=97=A0=E6=95=B0=E6=8D=AE=E6=83=85=E5=86=B5=EF=BC=8C=E7=A1=AE?= =?UTF-8?q?=E4=BF=9D=E5=9B=BE=E8=A1=A8=E6=95=B0=E6=8D=AE=E6=B8=85=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/views/dataStatistics/realtime/left-top.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ruoyi-ui/src/views/dataStatistics/realtime/left-top.vue b/ruoyi-ui/src/views/dataStatistics/realtime/left-top.vue index 5b58480..416f68b 100644 --- a/ruoyi-ui/src/views/dataStatistics/realtime/left-top.vue +++ b/ruoyi-ui/src/views/dataStatistics/realtime/left-top.vue @@ -80,6 +80,9 @@ export default { const seriesData = res.rows.map((item) => parseFloat(item.ds)); this.chartData.Xdata = axisData; this.chartData.Ydata = seriesData; + } else { + this.chartData.Xdata = []; + this.chartData.Ydata = []; } }); }