1.引入npm install echarts --save
2.main.js中引入
import * as echarts from 'echarts';
Vue.prototype.$echarts = echarts
3.使用var myChart = this.$echarts.init(this.$refs.echartsDiv);
1.引入npm install echarts --save
2.main.js中引入
import * as echarts from 'echarts';
Vue.prototype.$echarts = echarts
3.使用var myChart = this.$echarts.init(this.$refs.echartsDiv);