vue-echarts出现Uncaught TypeError: Cannot read property ‘dispatchAction’ of undefined
在vue项目中,使用自动展示的功能,能运行,但是一直报错Uncaught TypeError: Cannot read property ‘dispatchAction’ of undefined。虽然可以运行,一直打印错误看着挺闹心的。试了好久找了解决办法。
报错代码实现部分摘录
播放代码实现:
<template>
<div :style="styleObj">
<v-chart :options="options" autoresize ref="cityMap"/>
</div>
</template>
//自动切换定时器, 自动切换项
let timer = null, nows = -1;
methods: {
autoShow(length) {
console.log(