src/main.js
@@ -18,6 +18,9 @@ import '@components/plugin/leaflet-measure-path/leaflet-measure-path.css' import '@components/plugin/leaflet-measure-path/leaflet-measure-path' import '@components/plugin/PathDrag' // import '@components/plugin/flowline' import layer from './components/layer' const appConfig = require('@/app.config') Vue.config.productionTip = false @@ -27,6 +30,7 @@ Vue.prototype.$config = appConfig Vue.prototype.$echarts = echarts // 挂载echarts window.Vue = Vue window.$layer = layer(Vue) // 注册指令7 // registerDirectives(Vue)