From a90acbbbbdc0863d49dcdfe42277fbd04443a045 Mon Sep 17 00:00:00 2001 From: yanxiong Date: Tue, 23 Apr 2024 11:27:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8E=BB=E9=99=A4=E6=97=A0=E7=94=A8?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../official-layer-control/index.tsx | 17 ----------------- 1 file changed, 17 deletions(-) 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 f057665..b72147f 100644 --- a/src/components/map-control-group/official-layer-control/index.tsx +++ b/src/components/map-control-group/official-layer-control/index.tsx @@ -191,23 +191,6 @@ export function OfficialLayerControl() { return Promise.resolve(); }; - const uploadValidateSpace = (_: any, value: any) => { - const reject = Promise.reject(t('official_layer_control.index.shangchuan')); - if (value.fileList) { - if (!value.fileList.length) { - return reject; - } else { - return Promise.resolve(); - } - } else { - if (!value.length) { - return reject; - } else { - return Promise.resolve(); - } - } - }; - const handleChange: UploadProps['onChange'] = (info) => { let newFileList = [...info.fileList]; newFileList = newFileList.slice(-2);