新增百度音源

This commit is contained in:
lyswhut
2019-08-20 13:18:11 +08:00
parent 78d2541c14
commit 3a615a4a87
14 changed files with 245 additions and 11 deletions
+1
View File
@@ -191,6 +191,7 @@ const actions = {
commit('resumeTask', downloadInfo)
},
}
commit('setStatusText', { downloadInfo, text: '获取URL中...' })
let p = options.url ? Promise.resolve() : refreshUrl(downloadInfo).then(result => {
commit('updateUrl', { downloadInfo, url: result.url })
if (!result.url) return Promise.reject(new Error('获取URL失败'))