文件存在修改列表

This commit is contained in:
RenCheng 2025-06-04 23:35:28 +08:00
parent a164ff10dc
commit bc6c59545f

View File

@ -214,13 +214,16 @@ export default {
currentRow.percentage = 0
const _20M = 20 * 1024 * 1024 //
let that =this;
this.getMd5(file)
this.getMd5(file,file.size)
.then((res) => {
let fileMD5Value = res
verifyFileExist({ fileMD5Value: fileMD5Value })
.then((res) => {
if (res.result.exist) { //
that.$message.warning(file.name+'文件已存在');
that.tableDate = that.tableDate.filter(item => item.name == file.name);
delete that.fileMD5[file.uid]
console.log(that.tableDate )
} else { //
if (file.size > _20M) { // 20M
that.uploadByPieces({ //