sun-chaochao 3 лет назад
Родитель
Сommit
7841d1a8e4
1 измененных файлов с 0 добавлено и 6 удалено
  1. 0 6
      src/pages/link/Protocol/FileUpload/index.tsx

+ 0 - 6
src/pages/link/Protocol/FileUpload/index.tsx

@@ -13,16 +13,10 @@ interface Props {
 
 const FileUpload = connect((props: Props) => {
   const [url, setUrl] = useState<string>(props?.value);
-  // const [loading, setLoading] = useState<boolean>(false);
 
   const handleChange = (info: UploadChangeParam) => {
-    // setLoading(true)
-    if (info.file.status === 'uploading') {
-      // setLoading(false);
-    }
     if (info.file.status === 'done') {
       info.file.url = info.file.response?.result;
-      // setLoading(false);
       setUrl(info.file.response?.result);
       props.onChange(info.file.response?.result);
     }