From 2ed26d587b6ad3f0af2931a0cda9b4886819ac99 Mon Sep 17 00:00:00 2001 From: Astrian Zheng Date: Fri, 22 Aug 2025 20:42:34 +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 | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/stores/usePlayState.ts b/src/stores/usePlayState.ts index 77abbf9..7bbe3a1 100644 --- a/src/stores/usePlayState.ts +++ b/src/stores/usePlayState.ts @@ -1,7 +1,6 @@ import { defineStore } from 'pinia' -import { ref, computed, watch } from 'vue' +import { ref, computed } from 'vue' import { debugStore } from '../utils/debug' -import artistsOrganize from '../utils/artistsOrganize' export const usePlayState = defineStore('playState', () => { // 播放状态 @@ -9,11 +8,10 @@ export const usePlayState = defineStore('playState', () => { const playProgress = ref(0) // 播放进度 const currentTrackDuration = ref(0) // 曲目总时长 const currentTrack = ref(null) // 当前播放的曲目 - const mediaSessionInitialized = ref(false) const actualPlaying = ref(false) // 实际音频的播放与暂停 // 外显播放状态方法 - const playingState = computed(() => isPlaying.value) + const playingState = computed(() => isPlaying.value || actualPlaying.value) // 其中有一个为 true 时回报为 true const playProgressState = computed(() => playProgress.value) const trackDurationState = computed(() => currentTrackDuration.value) const actualPlayingState = computed(() => actualPlaying.value)