如何在vue-cli中引用使用echarts插件


下载 cnpm install echarts -S

在mian.js文件中引入

const ECharts =require('echarts') Vue.prototype.$echarts = ECharts;   在chart.vue文件中使用