npm install echarts --save
2、在 main.js 中添加下面两行代码
import * as echarts from 'echarts' Vue.prototype.$echarts = echarts //挂载到Vue实例上面
二、使用 https://echarts.apache.org/examples/zh/index.html#chart-type-pie
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/206451.html原文链接:https://javaforall.net
