添加echarts 5.x支持

This commit is contained in:
Heeeeee
2021-07-01 08:07:34 +00:00
committed by Gitee
parent 0655a73aed
commit 82f425d18e
+4
View File
@@ -24,7 +24,11 @@ import './assets/scss/style.scss';
//引入echart
//4.x 引用方式
import echarts from 'echarts'
//5.x 引用方式为按需引用
//希望使用5.x版本的话,需要在package.json中更新版本号,并切换引用方式
//import * as echarts from 'echarts'
Vue.prototype.$echarts = echarts
Vue.config.productionTip = false;