feat: 当只有一句歌词且内容为'纯音乐,请欣赏'时,隐藏歌词面板 (#1205)

This commit is contained in:
memorydream 2022-01-09 18:34:30 +08:00 committed by GitHub
parent a87686098c
commit 73df7f28f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -327,10 +327,16 @@ export default {
return false;
} else {
let { lyric, tlyric } = lyricParser(data);
if (lyric.length === 1 && lyric[0].content === '纯音乐,请欣赏') {
this.lyric = [];
this.tlyric = [];
return false;
} else {
this.lyric = lyric;
this.tlyric = tlyric;
return true;
}
}
});
},
formatTrackTime(value) {