修复稍后播放切歌问题

pull/623/head
lyswhut 2021-08-11 11:57:41 +08:00
parent 04be42a4d6
commit e85709a341
1 changed files with 2 additions and 2 deletions

View File

@ -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