123456789101112131415161718192021222324252627282930313233343536 |
- // The Vue build version to load with the `import` command
- // (runtime-only or standalone) has been set in webpack.base.conf with an alias.
- import Vue from 'vue'
- import App from './App'
- import router from './router'
- import Elementui from 'element-ui'
- import VueAMap from 'vue-amap';
- import {get, post, postJson} from './api/http'
- Vue.config.productionTip = false
- Vue.prototype.$get = get;
- Vue.prototype.$post = post;
- Vue.prototype.$postJson = postJson;
- Vue.use(VueAMap);
- 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 */
- new Vue({
- el: '#app',
- router,
- components: { App },
- template: '<App/>'
- })
|