文件存在修改列表
This commit is contained in:
parent
a164ff10dc
commit
bc6c59545f
|
@ -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({ // 这里走分片上传逻辑
|
||||
|
|
Loading…
Reference in New Issue
Block a user