From 37f31d0516f747b621b2c1edcecfaf2e25f5bab1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=AF=E8=99=B9=E5=B7=9D=E9=A3=B4?= Date: Tue, 9 Nov 2021 10:55:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20issues=20#1019=20(#?= =?UTF-8?q?1040)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * issues #1019 的迫真修复 * 修复 issues #1019 * 修复 issues #1019 * 改回 pickedLyric() 逻辑 --- src/views/library.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/views/library.vue b/src/views/library.vue index 2c7fb7b..693b1da 100644 --- a/src/views/library.vue +++ b/src/views/library.vue @@ -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() {