fix:修复overview 最后两个图无法显示的bug

This commit is contained in:
wangwenrui
2020-07-09 10:57:54 +08:00
parent 4556048a33
commit 185f47212f

View File

@@ -107,11 +107,12 @@
// console.log(this.option) // console.log(this.option)
if(this.series){ if(this.series){
this.$set(this.option,'series',this.series); this.$set(this.option,'series',this.series);
console.log(this.series,'11111');
this.noData=false; this.noData=false;
this.chart.clear(); this.chart.clear();
this.optionSeriesAll=[...this.option.series]; this.optionSeriesAll=[...this.option.series];
if(this.option.series instanceof Array){
this.option.series=this.option.series.filter((item,index)=>index<this.dataSize); this.option.series=this.option.series.filter((item,index)=>index<this.dataSize);
}
this.chart.setOption(this.option); this.chart.setOption(this.option);
}else{ }else{
this.noData=true; this.noData=true;