Explorar el Código

fix: CI又出错

sun-chaochao hace 3 años
padre
commit
7841d1a8e4
Se han modificado 1 ficheros con 0 adiciones y 6 borrados
  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);
     }