shaogen1995 1 年之前
父节点
当前提交
ff7b3d2f27
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      src/components/ZupTypes/index.tsx

+ 5 - 0
src/components/ZupTypes/index.tsx

@@ -191,6 +191,11 @@ function ZupTypes(
 
 
         fd.append("file", filesInfo);
         fd.append("file", filesInfo);
 
 
+        if(fileOneType==='img'){
+          // 开启压缩图片
+          fd.append("isCompress", 'true');
+        }
+
         e.target.value = "";
         e.target.value = "";
 
 
         const res = await API_upFile(fd, myUrl);
         const res = await API_upFile(fd, myUrl);