feat: 优化播放器样式 添加单曲循环 优化桌面歌词效果

This commit is contained in:
alger
2024-12-15 01:40:13 +08:00
parent f2f5d3ac15
commit 7be126cf5f
7 changed files with 316 additions and 86 deletions
+7 -1
View File
@@ -92,7 +92,13 @@ export const audioServiceOn = (audio: typeof audioService) => {
// 监听结束
audio.onEnd(() => {
handleEnded();
store.commit('nextPlay');
if (store.state.playMode === 1) {
// 单曲循环模式
audio.getCurrentSound()?.play();
} else {
// 列表循环模式
store.commit('nextPlay');
}
});
};