|
@@ -9,7 +9,7 @@ export const getFileMD5 = (file, callback) => {
|
|
|
const fileReader = new FileReader()
|
|
|
// 计算分片数
|
|
|
const totalChunks = Math.ceil(file.size / chunkSize)
|
|
|
- console.log('总分片数:' + totalChunks)
|
|
|
+ // console.log('总分片数:' + totalChunks)
|
|
|
let currentChunk = 0
|
|
|
const spark = new SparkMD5.ArrayBuffer()
|
|
|
loadNext()
|
|
@@ -17,7 +17,7 @@ export const getFileMD5 = (file, callback) => {
|
|
|
try {
|
|
|
spark.append(e.target.result)
|
|
|
} catch (error) {
|
|
|
- console.log('获取Md5错误:' + currentChunk)
|
|
|
+ // console.log('获取Md5错误:' + currentChunk)
|
|
|
}
|
|
|
if (currentChunk < totalChunks) {
|
|
|
currentChunk++
|