fix: 修复 issues #1019 (#1040)

* issues #1019 的迫真修复

* 修复 issues #1019

* 修复 issues #1019

* 改回 pickedLyric() 逻辑
master
是虹川飴 3 years ago committed by GitHub
parent e4298fdad6
commit 8341727882
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -286,7 +286,15 @@ export default {
getLyric(
this.liked.songs[randomNum(0, this.liked.songs.length - 1)]
).then(data => {
if (data.lrc !== undefined) this.lyric = data.lrc.lyric;
if (data.lrc !== undefined) {
let ifl = data.lrc.lyric.split('\n').filter(l => {
if (l.includes('作词')) {
this.lyric = data.lrc.lyric;
return true + ifl;
}
return false;
});
}
});
},
openAddPlaylistModal() {

Loading…
Cancel
Save