Compare commits
No commits in common. "87bd93edf90b1e3ad9c8da963180154553039c1e" and "ada34b806a9b76c02674ed957f69162644b1a5b5" have entirely different histories.
87bd93edf9
...
ada34b806a
|
@ -214,16 +214,13 @@ export default {
|
||||||
currentRow.percentage = 0
|
currentRow.percentage = 0
|
||||||
const _20M = 20 * 1024 * 1024 //设置超大文件判断关闭分片
|
const _20M = 20 * 1024 * 1024 //设置超大文件判断关闭分片
|
||||||
let that =this;
|
let that =this;
|
||||||
this.getMd5(file,file.size)
|
this.getMd5(file)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
let fileMD5Value = res
|
let fileMD5Value = res
|
||||||
verifyFileExist({ fileMD5Value: fileMD5Value })
|
verifyFileExist({ fileMD5Value: fileMD5Value })
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res.result.exist) { // 跳过文件验证逻辑
|
if (res.result.exist) { // 跳过文件验证逻辑
|
||||||
that.$message.warning(file.name+'文件已存在');
|
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 { // 未存在,走上传逻辑
|
} else { // 未存在,走上传逻辑
|
||||||
if (file.size > _20M) { // 20M 以上分片上传
|
if (file.size > _20M) { // 20M 以上分片上传
|
||||||
that.uploadByPieces({ // 这里走分片上传逻辑
|
that.uploadByPieces({ // 这里走分片上传逻辑
|
||||||
|
|
Loading…
Reference in New Issue
Block a user