解决vue中使用echarts的formatter提示警告的问题

vue.runtime.esm.js:587 [Vue warn]: Property or method "formatter" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.

查看官网

 因此在自己的文件中的data初始化属性

猜你喜欢

转载自www.cnblogs.com/whdaichengxu/p/12167281.html