mirror of
https://github.com/qier222/YesPlayMusic.git
synced 2026-04-05 18:49:06 +08:00
feat: 当只有一句歌词且内容为'纯音乐,请欣赏'时,隐藏歌词面板 (#1205)
This commit is contained in:
@@ -327,9 +327,15 @@ export default {
|
||||
return false;
|
||||
} else {
|
||||
let { lyric, tlyric } = lyricParser(data);
|
||||
this.lyric = lyric;
|
||||
this.tlyric = tlyric;
|
||||
return true;
|
||||
if (lyric.length === 1 && lyric[0].content === '纯音乐,请欣赏') {
|
||||
this.lyric = [];
|
||||
this.tlyric = [];
|
||||
return false;
|
||||
} else {
|
||||
this.lyric = lyric;
|
||||
this.tlyric = tlyric;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user