src/main.js
@@ -15,6 +15,7 @@ import '@/utils/dialogDrag.js' import '@components/plugin/leaflet-measure-path/leaflet-measure-path.css' import '@components/plugin/leaflet-measure-path/leaflet-measure-path' import '@components/plugin/PathDrag' const appConfig = require('@/app.config') Vue.config.productionTip = false @@ -22,6 +23,8 @@ Vue.prototype.$cancels = [] Vue.prototype.L = L Vue.prototype.$config = appConfig Vue.prototype.$echarts = echarts // 挂载echarts window.Vue = Vue // 注册指令7 // registerDirectives(Vue)