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/store/modules/map.js | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/store/modules/map.js b/src/store/modules/map.js index d45b265..a9d9fc5 100644 --- a/src/store/modules/map.js +++ b/src/store/modules/map.js @@ -3,7 +3,6 @@ const state = { currentCorp: null, currentCorpType: null, - L: null, map: null, // 瀹炰緥鍖栫殑map basemapHelper: {}, // 褰卞儚鍦板浘鍥惧眰鎺у埗鍣ㄥ疄鐜板姪鎵嬬▼搴� serviceLayerHelper: {}, // 鏈嶅姟鍥惧眰鎺у埗鍣ㄥ疄鐜板姪鎵嬬▼搴� @@ -17,9 +16,8 @@ mapConfig: mapConfig } const mutations = { - setMapObj (state, mObject) { - state.L = mObject.L - state.map = mObject.map + setMapObj (state, map) { + state.map = map }, setBasemapHelper (state, layerHelper) { state.basemapHelper = layerHelper -- Gitblit v1.8.0