|
@@ -92,7 +92,7 @@ export default {
|
|
// console.log(fileChunks)
|
|
// console.log(fileChunks)
|
|
// return
|
|
// return
|
|
// fileChunks = [1,2,3,4,5]
|
|
// fileChunks = [1,2,3,4,5]
|
|
- this.len = fileChunks.length + 4
|
|
|
|
|
|
+ this.len = fileChunks.length + 3
|
|
|
|
|
|
getFileMD5(this.form.file, async (md5) => {
|
|
getFileMD5(this.form.file, async (md5) => {
|
|
this.record('文件MD5:' + md5)
|
|
this.record('文件MD5:' + md5)
|
|
@@ -101,7 +101,8 @@ export default {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
await this.uploadChunks(fileChunks, md5, 0)
|
|
await this.uploadChunks(fileChunks, md5, 0)
|
|
- this.record('等待服务器合并分片')
|
|
|
|
|
|
+ // this.record('等待服务器合并分片')
|
|
|
|
+ this.recordMessage = '等待服务器合并分片'
|
|
const response = await this.$api.mergeChunks({ md5: md5, fileName: this.form.file.name })
|
|
const response = await this.$api.mergeChunks({ md5: md5, fileName: this.form.file.name })
|
|
if(response.code != 200){
|
|
if(response.code != 200){
|
|
return
|
|
return
|