优化自动换源功能
parent
1d3b93d4a3
commit
1e904e5ebb
|
@ -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 => {
|
||||
|
|
Loading…
Reference in New Issue