Skip to content

Commit

Permalink
fix: 去除无用代码
Browse files Browse the repository at this point in the history
  • Loading branch information
heiyexing committed Apr 23, 2024
1 parent 0870f7f commit a90acbb
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/components/map-control-group/official-layer-control/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a90acbb

Please sign in to comment.