src/main.js
@@ -13,12 +13,16 @@ import 'leaflet/dist/leaflet.css' import L from 'leaflet' import '@/utils/dialogDrag.js' import '@components/plugin/leaflet-measure-path/leaflet-measure-path.css' import '@components/plugin/leaflet-measure-path/leaflet-measure-path' const appConfig = require('@/app.config') Vue.config.productionTip = false Vue.use(ElementUI) Vue.prototype.$cancels = [] Vue.prototype.L = L Vue.prototype.$config = appConfig Vue.prototype.$echarts = echarts // 挂载echarts // 注册指令7 // registerDirectives(Vue)