We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ef6b98 commit 2e0dec3Copy full SHA for 2e0dec3
1 file changed
src/core/player/PlayerController.ts
@@ -126,14 +126,11 @@ class PlayerController {
126
statusStore.playLoading = true;
127
// 停止当前播放
128
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
- }
+ musicStore.playSong = playSongData;
+ // 重置播放进度
+ statusStore.currentTime = 0;
+ statusStore.progress = 0;
+ statusStore.lyricIndex = -1;
137
// 重置重试计数
138
const sid = playSongData.type === "radio" ? playSongData.dj?.id : playSongData.id;
139
if (this.retryInfo.songId !== sid) {
0 commit comments