From e85709a34115ebc95bd7f57d213f4b3e5208eac0 Mon Sep 17 00:00:00 2001 From: lyswhut Date: Wed, 11 Aug 2021 11:57:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=A8=8D=E5=90=8E=E6=92=AD?= =?UTF-8?q?=E6=94=BE=E5=88=87=E6=AD=8C=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/store/modules/player.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/store/modules/player.js b/src/renderer/store/modules/player.js index 12fa73c5..72bc7d19 100644 --- a/src/renderer/store/modules/player.js +++ b/src/renderer/store/modules/player.js @@ -146,14 +146,14 @@ let prevListPlayIndex const getters = { list: state => state.listInfo.list, changePlay: satte => satte.changePlay, - playInfo(state, getters) { + playInfo(state) { if (state.playMusicInfo == null) return { listId: null, playIndex: -1, playListId: null, listPlayIndex: -1, isPlayList: false, musicInfo: null } const playListId = state.listInfo.id let listId = state.playMusicInfo.listId const isTempPlay = !!state.playMusicInfo.isTempPlay const isPlayList = listId === playListId let playIndex = -1 - let listPlayIndex = state.playIndex + let listPlayIndex = Math.min(state.playIndex, state.listInfo.list.length - 1) if (listId != '__temp__') { const currentSongmid = state.playMusicInfo.musicInfo.songmid || state.playMusicInfo.musicInfo.musicInfo.songmid