修复对多列表滚动条位置恢复的支持

This commit is contained in:
lyswhut
2019-10-03 18:42:26 +08:00
parent 6498305ec8
commit f4c65516d0
4 changed files with 17 additions and 10 deletions
+2 -2
View File
@@ -18,8 +18,8 @@ export default {
if (sortId != null) state.setting.songList.sortId = sortId
if (source != null) state.setting.songList.source = source
},
setListScroll(state, scrollTop) {
state.setting.list.scroll.location = scrollTop
setListScroll(state, { id, location }) {
state.setting.list.scroll.locations[id] = location
},
setNewVersion(state, val) {
// val.history.forEach(ver => {