From f4346f4c79816d3acb2b2598fe3db0eb7c1c689c Mon Sep 17 00:00:00 2001 From: alger Date: Sun, 5 Jul 2026 14:09:51 +0800 Subject: [PATCH] =?UTF-8?q?fix(player):=20=E7=A7=81=E4=BA=BA=20FM=20?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E4=B8=8B=E7=82=B9=E5=87=BB=E4=B8=8A=E4=B8=80?= =?UTF-8?q?=E6=9B=B2=E4=B8=8D=E5=86=8D=E9=87=8D=E6=94=BE=E5=BD=93=E5=89=8D?= =?UTF-8?q?=E6=AD=8C=E6=9B=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit _prevPlay 补充 FM 分支:FM 不支持回到上一首,与下一曲行为一致直接拉取新的 FM 歌曲。 此前 FM 列表只有一首歌,上一曲计算出的索引仍是当前曲目导致原地重放。 Closes #682 --- src/renderer/store/modules/playlist.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/renderer/store/modules/playlist.ts b/src/renderer/store/modules/playlist.ts index d66e3c3..fc4938e 100644 --- a/src/renderer/store/modules/playlist.ts +++ b/src/renderer/store/modules/playlist.ts @@ -543,10 +543,19 @@ export const usePlaylistStore = defineStore( const _prevPlay = async () => { try { + const playerCore = usePlayerCoreStore(); + + // 私人FM模式:FM 不支持回到上一首,与下一曲一致直接拉取新的 FM 歌曲(#682) + if (playerCore.isFmPlaying) { + cancelRetryTimer(); + consecutiveFailCount.value = 0; + await _nextFmPlay(); + return; + } + if (playList.value.length === 0) return; cancelRetryTimer(); - const playerCore = usePlayerCoreStore(); const nowPlayListIndex = (playListIndex.value - 1 + playList.value.length) % playList.value.length; const prevSong = { ...playList.value[nowPlayListIndex] };