|
@@ -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);
|