This commit is contained in:
wangchengming 2025-12-12 15:24:14 +08:00
parent 36f58ddab8
commit e7d2c83f52

View File

@ -247,8 +247,10 @@ export default {
if (item.end_time) {
clearInterval(this.timer)
}
this.chartData.xAxisData.push(new Date().toLocaleString().replaceAll('/', '-'))
this.chartData.seriesData.push((item.loss ? item.loss : 0))
if (item.loss) {
this.chartData.xAxisData.push(new Date().toLocaleString().replaceAll('/', '-'))
this.chartData.seriesData.push(item.loss)
}
}
})
this.myChart.setOption({
@ -271,7 +273,7 @@ export default {
title: {
left: 'center',
text: 'LOSS',
textStyle: {
textStyle: {
color: '#ffffff' //
}
},