修复了一个歌曲下载失败时不会跳过任务的问题

This commit is contained in:
lyswhut
2021-05-19 18:15:04 +08:00
parent 1364d58065
commit 4da6524493
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -460,7 +460,7 @@ const actions = {
},
onFail(response) {
if (++tryNum[downloadInfo.key] > 2) {
commit('onError', downloadInfo)
commit('onError', { downloadInfo, errorMsg: '下载失败' })
dispatch('startTask')
return
}