Skip to content

Commit 2e0dec3

Browse files
committed
🐞 fix: 修复无法正常播放
1 parent 8ef6b98 commit 2e0dec3

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

src/core/player/PlayerController.ts

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -126,14 +126,11 @@ class PlayerController {
126126
statusStore.playLoading = true;
127127
// 停止当前播放
128128
audioManager.stop();
129-
// 如果传入了新的歌曲,才更新 Store
130-
if (musicStore.playSong.id !== playSongData.id) {
131-
musicStore.playSong = playSongData;
132-
// 重置播放进度
133-
statusStore.currentTime = 0;
134-
statusStore.progress = 0;
135-
statusStore.lyricIndex = -1;
136-
}
129+
musicStore.playSong = playSongData;
130+
// 重置播放进度
131+
statusStore.currentTime = 0;
132+
statusStore.progress = 0;
133+
statusStore.lyricIndex = -1;
137134
// 重置重试计数
138135
const sid = playSongData.type === "radio" ? playSongData.dj?.id : playSongData.id;
139136
if (this.retryInfo.songId !== sid) {

0 commit comments

Comments
 (0)