1 Error in mounted hook: "TypeError: axis.getAxesOnZeroOf is not a function"
is reported when the image is initialized.2, code
methods: {
echartInit: function() {
if (this.chartObj !== null && !this.chartObj.isDisposed() ) {
echarts.dispose(this.chartObj)
}
var chart = document.getElementById("chart")
this.chartObj = echarts.init(chart)
var option = this.$store.getters["station/getEchartOption"]
this.chartObj.setOption(option)
var thisObj = this
window.onresize = function() {
thisObj.$store.dispatch("station/eChartContainer", chart)
thisObj.chartObj.resize()
}
}
}