This commit is contained in:
weipengfei 2023-09-04 18:54:31 +08:00
parent c13e0b1682
commit 16438de52f

View File

@ -55,16 +55,12 @@ const loadMP = async (id) => {
}
});
downloadTask.onProgressUpdate((res) => {
console.log('下载进度' + res.progress);
// console.log('下载进度' + res.progress);
if (res.progress > count) count += 10;
if (count >= 90) {
clearInterval(timer);
timer = null;
}
// 满足测试条件,取消下载任务。
// if (res.progress > 50) {
// downloadTask.abort();
// }
});
} else {
open()