!5 添加echarts 5.x支持

Merge pull request !5 from Heeeeee/N/A
This commit is contained in:
奔跑的面条
2021-09-17 06:50:48 +00:00
committed by Gitee
+4
View File
@@ -24,7 +24,11 @@ import './assets/scss/style.scss';
//引入echart //引入echart
//4.x 引用方式
import echarts from 'echarts' import echarts from 'echarts'
//5.x 引用方式为按需引用
//希望使用5.x版本的话,需要在package.json中更新版本号,并切换引用方式
//import * as echarts from 'echarts'
Vue.prototype.$echarts = echarts Vue.prototype.$echarts = echarts
Vue.config.productionTip = false; Vue.config.productionTip = false;