修复稍后播放问题
This commit is contained in:
@@ -415,7 +415,7 @@ const mutations = {
|
||||
},
|
||||
setTempPlayList(state, list) {
|
||||
addTempPlayList(list)
|
||||
if (!playMusicInfo.musicInfo) this.commit('player/playNext')
|
||||
if (!playMusicInfo.musicInfo) this.dispatch('player/playNext')
|
||||
},
|
||||
removeTempPlayList(state, index) {
|
||||
removeTempPlayList(index)
|
||||
|
||||
@@ -81,8 +81,7 @@ const actions = {
|
||||
commit('clearList')
|
||||
return music[source].songList.getList(sortId, tabId, page).then(result => commit('setList', { result, key, page }))
|
||||
},
|
||||
getListDetail({ state, rootState, commit }, { id, page }) {
|
||||
let source = rootState.setting.songList.source
|
||||
getListDetail({ state, commit }, { id, source, page }) {
|
||||
let key = `sdetail__${source}__${id}__${page}`
|
||||
if (state.listDetail.list.length && state.listDetail.key == key) return Promise.resolve()
|
||||
commit('clearListDetail')
|
||||
|
||||
Reference in New Issue
Block a user