@@ -1,11 +1,9 @@
export default {
template: "<div></div>",
mounted() {
- setTimeout(() => {
- this.chart = echarts.init(this.$el);
- this.chart.setOption(this.options);
- this.chart.resize();
- }, 0); // NOTE: wait for window.path_prefix to be set in app.mounted()
+ this.chart = echarts.init(this.$el);
+ this.chart.setOption(this.options);
+ this.chart.resize();
},
beforeDestroy() {
this.destroyChart();