fix: 修复 issues #1019 (#1040)

* issues #1019 的迫真修复

* 修复 issues #1019

* 修复 issues #1019

* 改回 pickedLyric() 逻辑
This commit is contained in:
是虹川飴 2021-11-09 10:55:36 +08:00 committed by GitHub
parent e4298fdad6
commit 8341727882
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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() {