|
@@ -191,9 +191,9 @@ function ZupTypes(
|
|
|
|
|
|
fd.append("file", filesInfo);
|
|
|
|
|
|
- if(fileOneType==='img'){
|
|
|
+ if (fileOneType === "img" && filesInfo.size > 1 * 1024 * 1024) {
|
|
|
// 开启压缩图片
|
|
|
- fd.append("isCompress", 'true');
|
|
|
+ fd.append("isCompress", "true");
|
|
|
}
|
|
|
|
|
|
e.target.value = "";
|