|
@@ -6,6 +6,8 @@ import router from './router'
|
|
|
|
|
|
import Elementui from 'element-ui'
|
|
import Elementui from 'element-ui'
|
|
|
|
|
|
|
|
+import VueAMap from 'vue-amap';
|
|
|
|
+
|
|
import {get, post, postJson} from './api/http'
|
|
import {get, post, postJson} from './api/http'
|
|
|
|
|
|
Vue.config.productionTip = false
|
|
Vue.config.productionTip = false
|
|
@@ -14,8 +16,17 @@ Vue.prototype.$get = get;
|
|
Vue.prototype.$post = post;
|
|
Vue.prototype.$post = post;
|
|
Vue.prototype.$postJson = postJson;
|
|
Vue.prototype.$postJson = postJson;
|
|
|
|
|
|
|
|
+Vue.use(VueAMap);
|
|
|
|
+
|
|
Vue.use(Elementui)
|
|
Vue.use(Elementui)
|
|
|
|
|
|
|
|
+VueAMap.initAMapApiLoader({
|
|
|
|
+ key: '610161977d2e2632eb34aff3e88a079f',
|
|
|
|
+ plugin: ['AMap.Scale','AMap.OverView','AMap.ToolBar','AMap.MapType','AMap.PlaceSearch','AMap.Geolocation','AMap.Geocoder'],
|
|
|
|
+ v: '1.4.4',
|
|
|
|
+ uiVersion: '1.0'
|
|
|
|
+})
|
|
|
|
+
|
|
/* eslint-disable no-new */
|
|
/* eslint-disable no-new */
|
|
new Vue({
|
|
new Vue({
|
|
el: '#app',
|
|
el: '#app',
|