main.js
import echarts from 'echarts'
Vue.prototype.$echarts = echarts
改为
Vue.prototype.$echarts = require('echarts')
main.js
import echarts from 'echarts'
Vue.prototype.$echarts = echarts
改为
Vue.prototype.$echarts = require('echarts')