main.js 709 B

123456789101112131415161718192021222324252627282930
  1. import Vue from 'vue'
  2. import App from './App.vue'
  3. import router from './routers'
  4. import store from './store'
  5. import echarts from 'echarts'
  6. import './plugins/element.js'
  7. import AxiosPlugin from './plugins/AxiosPlugin'
  8. import './assets/iconfont/iconfont.css'
  9. import AMap from "vue-amap"
  10. Vue.config.productionTip = false
  11. Vue.use(AxiosPlugin);
  12. //Vue.use(ConfirmPlugin);
  13. Vue.use(AMap);
  14. AMap.initAMapApiLoader({
  15. key: "09abadb2e35fc61fd84042c518e9aebf",
  16. plugin: ["AMap.Scale", "AMap.OverView", "AMap.ToolBar", "AMap.MapType"],
  17. uiVersion: "1.0.11", // ui库版本,不配置不加载,
  18. v: "1.4.4"
  19. });
  20. Vue.prototype.$echarts = echarts
  21. new Vue({
  22. router,
  23. store,
  24. render: h => h(App)
  25. }).$mount('#app')