diff --git a/src/views/pictureOnMap/page/DrainageSystem/YSIndex_right2.vue b/src/views/pictureOnMap/page/DrainageSystem/YSIndex_right2.vue index 85af38a..aa58be6 100644 --- a/src/views/pictureOnMap/page/DrainageSystem/YSIndex_right2.vue +++ b/src/views/pictureOnMap/page/DrainageSystem/YSIndex_right2.vue @@ -259,8 +259,10 @@ break; } }); - - arr.push(obj) + if(e.siteEchartDto?.times?.length>0){ + arr.push(obj) + } + obj.chartInfo.refresh =Math.random() }) @@ -297,7 +299,9 @@ }); at.XAxis = e.siteEchartDto.times; at.yAxisarr = e.siteEchartDto.datas; - arr.push(obj) + if(e.siteEchartDto?.times?.length>0){ + arr.push(obj) + } at.refresh =Math.random() })