fix:修改pc采集人脸判断代码重复问题

This commit is contained in:
Vce 2024-06-18 09:53:48 +08:00
parent 1781f0ccce
commit cea8ecc1e6

View File

@ -2810,12 +2810,6 @@ export default {
this.$message.error("图片裁剪后大小不能超过200kb小于10kb,请重新裁剪或重新上传图片!"); this.$message.error("图片裁剪后大小不能超过200kb小于10kb,请重新裁剪或重新上传图片!");
return false; return false;
} }
let imgSize = Number(res.data.data[0].fileInfo.size / 1024);
console.log('经过vueCropper裁剪后', imgSize);
if (imgSize <= 10 || imgSize >= 200) {
this.$message.error("图片裁剪后大小不能超过200kb小于10kb,请重新裁剪或重新上传图片!");
return false;
}
if (res.data.status == "SUCCESS") { if (res.data.status == "SUCCESS") {
if (this.isSzProject == 1) { if (this.isSzProject == 1) {
this.checkImgLibrary(res.data.data[0].imageUrl); this.checkImgLibrary(res.data.data[0].imageUrl);