更新
This commit is contained in:
parent
c13e0b1682
commit
16438de52f
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user