使用vue-echarts,需要按需引入

引入缺失报错:

 Error in callback for watcher "options": "Error: Component series.bar not exists. Load it first."

解决:

import 'echarts/lib/chart/bar'
文章来自:https://www.cnblogs.com/wwj007/p/12002726.html
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3