Browse Source

添加echar全局变量

mxx 3 năm trước cách đây
mục cha
commit
a579d365ce
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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'