报错:mounted hook: "Error: Component yAxis.custom not exists. Load it first."
报错的环境是:vue中使用echarts
解决方法: 项目名/node_modules/vue-echarts/components/Echarts.vue
中找到import echarts from 'echarts/lib/echarts'
改为import echarts from 'echarts'
就可以啦!!!
图片展示:
改为
mounted hook: “Error: Component yAxis.custom not exists. Load it first.“
最新推荐文章于 2021-08-11 16:26:10 发布