修复歌单无法翻页Bug

This commit is contained in:
lyswhut
2019-09-04 08:58:29 +08:00
parent d4750f4c6e
commit 9564097f46
3 changed files with 16 additions and 7 deletions
+1 -1
View File
@@ -67,7 +67,6 @@ const actions = {
let source = rootState.setting.songList.source
let key = `${source}${id}${page}`
if (state.listDetail.list.length && state.listDetail.key == key) return true
commit('clearListDetail')
return music[source].songList.getListDetail(id, page).then(result => commit('setListDetail', { result, key, page }))
},
}
@@ -98,6 +97,7 @@ const mutations = {
state.selectListInfo = info
},
clearListDetail(state) {
console.log('object')
state.listDetail.list = []
},
}