echart图表子组件
watch: {
lineOption: {
handler(newValue, oldValue) {
this.options = newValue; //把新值赋值给我们的属性数据
//第一种刷新echarts图表
this.initChart();
//第二种刷新echarts图表
this.myChart.setOption(this.options, true);
},
deep: true
}
},