Explorar o código

fix: lint错误

sun-chaochao %!s(int64=4) %!d(string=hai) anos
pai
achega
091445b8e4
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/pages/device/Instance/Import/index.tsx

+ 2 - 1
src/pages/device/Instance/Import/index.tsx

@@ -87,7 +87,8 @@ const NormalUpload = (props: any) => {
           onChange={(info) => {
             if (info.file.status === 'done') {
               message.success('上传成功');
-              props.onChange(info?.file?.response?.result || '');
+              const resp: any = info.file.response || { result: '' };
+              props.onChange(resp?.result || '');
             }
           }}
           showUploadList={false}