fix:修复overview 最后两个图无法显示的bug
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user