修复稍后播放切歌问题
parent
04be42a4d6
commit
e85709a341
|
@ -146,14 +146,14 @@ let prevListPlayIndex
|
||||||
const getters = {
|
const getters = {
|
||||||
list: state => state.listInfo.list,
|
list: state => state.listInfo.list,
|
||||||
changePlay: satte => satte.changePlay,
|
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 }
|
if (state.playMusicInfo == null) return { listId: null, playIndex: -1, playListId: null, listPlayIndex: -1, isPlayList: false, musicInfo: null }
|
||||||
const playListId = state.listInfo.id
|
const playListId = state.listInfo.id
|
||||||
let listId = state.playMusicInfo.listId
|
let listId = state.playMusicInfo.listId
|
||||||
const isTempPlay = !!state.playMusicInfo.isTempPlay
|
const isTempPlay = !!state.playMusicInfo.isTempPlay
|
||||||
const isPlayList = listId === playListId
|
const isPlayList = listId === playListId
|
||||||
let playIndex = -1
|
let playIndex = -1
|
||||||
let listPlayIndex = state.playIndex
|
let listPlayIndex = Math.min(state.playIndex, state.listInfo.list.length - 1)
|
||||||
|
|
||||||
if (listId != '__temp__') {
|
if (listId != '__temp__') {
|
||||||
const currentSongmid = state.playMusicInfo.musicInfo.songmid || state.playMusicInfo.musicInfo.musicInfo.songmid
|
const currentSongmid = state.playMusicInfo.musicInfo.songmid || state.playMusicInfo.musicInfo.musicInfo.songmid
|
||||||
|
|
Loading…
Reference in New Issue