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 = []; } }); }