From b27e031827eae0f535d17bb20ff4809699151a17 Mon Sep 17 00:00:00 2001
From: YANGDL <114714267@qq.com>
Date: 星期一, 08 二月 2021 15:42:37 +0800
Subject: [PATCH] 修改了leaflet L加载模式 修改了使用less加载方式

---
 src/main.js |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/main.js b/src/main.js
index fa37006..45c8a84 100644
--- a/src/main.js
+++ b/src/main.js
@@ -8,11 +8,14 @@
 import echartsDarkTheme from '@/styles/theme-dark/echarts/theme.json'
 import ElementUI from 'element-ui'
 import 'element-ui/lib/theme-chalk/index.css'
-
+import 'leaflet/dist/leaflet.css'
+import L from 'leaflet'
+import 'leaflet.markercluster'
 Vue.config.productionTip = false
 
 Vue.use(ElementUI, { size: 'small' })
 Vue.prototype.$cancels = []
+Vue.prototype.L = L
 // 娉ㄥ唽鎸囦护
 // registerDirectives(Vue)
 

--
Gitblit v1.8.0