瀏覽代碼

添加echar全局变量

mxx 3 年之前
父節點
當前提交
a579d365ce
共有 1 個文件被更改,包括 2 次插入2 次删除
  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'