|
|
@@ -68,7 +68,10 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
initEcharts() {
|
|
|
- this.myChart = echarts.init(document.getElementById('echarts'));
|
|
|
+ if(!this.myChart){
|
|
|
+ this.myChart = echarts.init(document.getElementById('echarts'));
|
|
|
+ }
|
|
|
+
|
|
|
this.myChart.resize({
|
|
|
width: this.width,
|
|
|
height: this.height
|
|
|
@@ -92,7 +95,7 @@ export default {
|
|
|
},
|
|
|
yAxis: {},
|
|
|
series: [...this.seriesParse]
|
|
|
- });
|
|
|
+ },true);
|
|
|
}
|
|
|
}
|
|
|
}
|