From b89ad0355f2d466304ecc2dad86407e26aa69db4 Mon Sep 17 00:00:00 2001 From: 徐旺旺 <11530253@qq.com> Date: 星期一, 22 二月 2021 18:37:47 +0800 Subject: [PATCH] 修改图层控制 --- src/store/modules/map.js | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/store/modules/map.js b/src/store/modules/map.js index 2a1bff6..c6b997e 100644 --- a/src/store/modules/map.js +++ b/src/store/modules/map.js @@ -1,4 +1,4 @@ -import mapConfig from '../../conf/MapConfig' +import config from '../../conf/MapConfig' const state = { currentCorp: null, @@ -14,7 +14,8 @@ selectedServiceLayer: '', // 浣跨敤杩囨护鍣ㄦ椂锛岃鎵撳紑鐨刉MS鏈嶅姟鐨凜ODE serviceLayerFilters: {}, // 鏈嶅姟鍥惧眰鎺у埗杩囨护閰嶇疆 checkedLayers: {}, // 閫変腑鍥惧眰瀵硅薄 - mapConfig: mapConfig + config: config, + serviceLayers: config.mapConfig.Layers } const mutations = { setMapObj (state, map) { -- Gitblit v1.8.0