优化自动换源功能

pull/392/head
lyswhut 2021-01-09 19:40:31 +08:00
parent 1d3b93d4a3
commit 1e904e5ebb
1 changed files with 1 additions and 1 deletions

View File

@ -712,7 +712,7 @@ export default {
this.status = this.statusText = 'Try toggle source...'
return (originMusic.otherSource ? Promise.resolve(originMusic.otherSource) : musicSdk.findMusic(originMusic)).then(res => {
return (originMusic.otherSource && originMusic.otherSource.length ? Promise.resolve(originMusic.otherSource) : musicSdk.findMusic(originMusic)).then(res => {
this.updateMusicInfo({ id: this.listId, index: this.playIndex, data: { otherSource: res } })
return res
}).then(otherSource => {