修复稍后播放问题

This commit is contained in:
lyswhut
2022-01-06 18:27:30 +08:00
parent c7f0fcbe9f
commit 9447034deb
3 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -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)
+1 -2
View File
@@ -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')