From 2fdec7688b4d88811458eb1ccb121d051812a331 Mon Sep 17 00:00:00 2001 From: Astrian Zheng Date: Fri, 22 Aug 2025 20:46:48 +1000 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=A4=96=E6=98=BE?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E4=B8=8D=E4=B8=80=E8=87=B4=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/stores/usePlayState.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/stores/usePlayState.ts b/src/stores/usePlayState.ts index 7bbe3a1..ebd9399 100644 --- a/src/stores/usePlayState.ts +++ b/src/stores/usePlayState.ts @@ -11,7 +11,7 @@ export const usePlayState = defineStore('playState', () => { const actualPlaying = ref(false) // 实际音频的播放与暂停 // 外显播放状态方法 - const playingState = computed(() => isPlaying.value || actualPlaying.value) // 其中有一个为 true 时回报为 true + const playingState = computed(() => isPlaying.value) const playProgressState = computed(() => playProgress.value) const trackDurationState = computed(() => currentTrackDuration.value) const actualPlayingState = computed(() => actualPlaying.value) @@ -64,6 +64,7 @@ export const usePlayState = defineStore('playState', () => { // 回报 Web Audio API 正在播放 const reportActualPlaying = (playing: boolean) => { actualPlaying.value = playing + if (playing) isPlaying.value = true } return {