Explorar el Código

添加echar全局变量

mxx hace 3 años
padre
commit
a579d365ce
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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'