From 2e8e9068062890022d5b6c8fd0f6f557401a051d Mon Sep 17 00:00:00 2001 From: zhaoqianci Date: Tue, 23 Apr 2024 16:32:12 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../map-control-group/official-layer-control/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/map-control-group/official-layer-control/index.tsx b/src/components/map-control-group/official-layer-control/index.tsx index 1bb8462..0219087 100644 --- a/src/components/map-control-group/official-layer-control/index.tsx +++ b/src/components/map-control-group/official-layer-control/index.tsx @@ -121,7 +121,7 @@ export function OfficialLayerControl() { if (isEdit) { const cloneCustomTiles = cloneDeep(customTiles); const newImgUrl = Array.isArray(e.img) ? e.img[0].url : `${base64}`; - cloneCustomTiles[editIndex - 4] = { + cloneCustomTiles[editIndex - BASE_LAYER_GROUP.length] = { id: e.name, image: newImgUrl, title: e.name,