优化歌词自动换源机制

This commit is contained in:
lyswhut
2021-11-28 01:54:45 +08:00
parent 63141c4ac9
commit b6f885b250
5 changed files with 7 additions and 10 deletions
+1 -1
View File
@@ -125,7 +125,7 @@ export default {
let requestObj = this.searchLyric(songInfo.name, songInfo.hash, songInfo._interval || this.getIntv(songInfo.interval))
requestObj.promise = requestObj.promise.then(result => {
if (!result) return { lyric: null, tlyric: null, lxlyric: null }
if (!result) return Promise.reject(new Error('Get lyric failed'))
let requestObj2 = this.getLyricDownload(result.id, result.accessKey)