修复下载管理刷新URL失败时不标记任务下载失败的问题

This commit is contained in:
lyswhut
2020-03-21 23:08:46 +08:00
parent 83f0ca918a
commit 4c97bc34ce
2 changed files with 4 additions and 1 deletions
+3 -1
View File
@@ -137,7 +137,9 @@ const refreshUrl = function(commit, downloadInfo) {
dl.refreshUrl(result.url)
dl.start()
}).catch(err => {
console.log(err)
// console.log(err)
commit('onError', downloadInfo)
commit('setStatusText', { downloadInfo, text: err.message })
this.dispatch('download/startTask')
})
}