sun-chaochao 4 лет назад
Родитель
Сommit
091445b8e4
1 измененных файлов с 2 добавлено и 1 удалено
  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}