修改测试bug及人脸核实

This commit is contained in:
gyj
2024-04-25 17:58:36 +08:00
parent 0d22fa41e1
commit fa0b195ec1
8 changed files with 127 additions and 43 deletions
@@ -79,11 +79,6 @@ export default {
},
beforeUpload(flie, fileList) {
const isLt2M = flie.size / 1024 / 1024 < 50; // 小于50MB
if (!isLt2M) {
this.$message.error('上传的文件大小不能超过 50MB!');
}
return isLt2M;
function getFileExtension(filename) {
const parts = filename.split('.');
return parts.length > 1 ? parts.pop() : '';
@@ -96,6 +91,11 @@ export default {
}
this.filedata.caseId = this.mediationLise.id
this.fileList = fileList;
const isLt2M = flie.size / 1024 / 1024 < 50; // 小于50MB
if (!isLt2M) {
this.$message.error('上传的文件大小不能超过 50MB!');
}
return isLt2M;
},
handlSuccess(res, file) {
if (res.code == 200) {