|
@@ -91,7 +91,7 @@ export default {
|
|
let fileChunks = createFileChunk(this.form.file)
|
|
let fileChunks = createFileChunk(this.form.file)
|
|
// console.log(fileChunks)
|
|
// console.log(fileChunks)
|
|
// return
|
|
// return
|
|
- fileChunks = [1,2,3,4,5]
|
|
|
|
|
|
+ // fileChunks = [1,2,3,4,5]
|
|
this.len = fileChunks.length + 3
|
|
this.len = fileChunks.length + 3
|
|
|
|
|
|
getFileMD5(this.form.file, async (md5) => {
|
|
getFileMD5(this.form.file, async (md5) => {
|
|
@@ -125,6 +125,7 @@ export default {
|
|
formData.append('file', fileChunks[i].file)
|
|
formData.append('file', fileChunks[i].file)
|
|
formData.append('md5', md5)
|
|
formData.append('md5', md5)
|
|
formData.append('index', i)
|
|
formData.append('index', i)
|
|
|
|
+ formData.append('sourceId', this.$constants.sourceId)
|
|
// setTimeout(()=>{
|
|
// setTimeout(()=>{
|
|
// const status = `将分片上传至服务器(${i + 1}/${fileChunks.length})`
|
|
// const status = `将分片上传至服务器(${i + 1}/${fileChunks.length})`
|
|
// this.record(status)
|
|
// this.record(status)
|