Browse Source

打印 下载app

master
邓宏 2 years ago
parent
commit
5d693bf0b5
  1. 3
      pages/home/login.vue

3
pages/home/login.vue

@ -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)

Loading…
Cancel
Save