修复重启软件后试听列表与收藏列表无法恢复上次的滚动位置的问题

pull/389/head
lyswhut 2020-09-28 01:32:53 +08:00
parent d32d5d0eb8
commit 3bb0fcc4cd
1 changed files with 2 additions and 2 deletions

View File

@ -54,8 +54,8 @@ const actions = {
// mitations
const mutations = {
initList(state, { defaultList, loveList, userList }) {
if (defaultList != null) state.defaultList.list = defaultList.list
if (loveList != null) state.loveList.list = loveList.list
if (defaultList != null) Object.assign(state.defaultList, { list: defaultList.list, location: defaultList.location })
if (loveList != null) Object.assign(state.loveList, { list: loveList.list, location: loveList.location })
if (userList != null) state.userList = userList
allListInit(state.defaultList, state.loveList, state.userList)
state.isInitedList = true