|
|
@ -181,9 +181,8 @@ export default { |
|
|
|
console.log(dtask,'--dtask----') |
|
|
|
if(dtask){ |
|
|
|
dtask.addEventListener("statechanged",e=>{ |
|
|
|
console.log("totalSize",e.totalSize) |
|
|
|
console.log(`totalSize:${e.totalSize};downloadedSize:${e.downloadedSize}`) |
|
|
|
if(e&&e.totalSize>0){ |
|
|
|
console.log("state",e.state,";","downloadedSize",e.downloadedSize) |
|
|
|
this.modalOptions.process=Math.floor((e.downloadedSize/e.totalSize)*10000)/100 |
|
|
|
} |
|
|
|
},false) |
|
|
|