Browse Source

添加echar全局变量

mxx 3 years ago
parent
commit
a579d365ce
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/main.js

+ 2 - 2
src/main.js

@@ -18,9 +18,9 @@ Vue.config.productionTip = false
 import AMap from 'vue-amap';
 Vue.use(AMap);
 import imgPreview from '@/components/imgPreview'
- 
 Vue.use(imgPreview)
-
+import echarts from "echarts";
+Vue.prototype.$echarts = echarts;
 import $ from 'jquery'
 // import Warehouse from './common.js'
 import Warehouse from './common.js'