From 36f8257a3e262fb0504ba8df7b3bc14764bc6ea8 Mon Sep 17 00:00:00 2001 From: alger Date: Fri, 13 Sep 2024 17:23:03 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix:=20=E4=B8=8A=E4=B8=80?= =?UTF-8?q?=E9=A6=96=E4=B8=8B=E4=B8=80=E9=A6=96=E9=80=BB=E8=BE=91=E9=94=99?= =?UTF-8?q?=E4=B9=B1=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/store/index.ts b/src/store/index.ts index aac3854..d6ab6d5 100644 --- a/src/store/index.ts +++ b/src/store/index.ts @@ -52,6 +52,7 @@ const mutations = { state.play = true; musicHistory.addMusic(playMusic); state.playMusic.playLoading = false; + state.playListIndex = state.playList.findIndex((item) => item.id === playMusic.id); }, setIsPlay(state: State, isPlay: boolean) { state.isPlay = isPlay;