|
|
|
@ -294,10 +294,17 @@ export default {
|
|
|
|
|
title: "进度", |
|
|
|
|
message: `当前上传进度: ${progressPercentage}%`, |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
if(progressPercentage==100){ |
|
|
|
|
this.$notify({ |
|
|
|
|
type: 'success', |
|
|
|
|
title: "通知", |
|
|
|
|
message: `文件已上传完成!正在处理中请稍等......`, |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
// 这里可以根据需要更新进度条或进度文本 |
|
|
|
|
|
|
|
|
|
if (index === totalChunks - 1) { |
|
|
|
|
|
|
|
|
|
const fileData = { |
|
|
|
|
fileName: file.name, |
|
|
|
|
totalChunks: totalChunks, |
|
|
|
|