diff --git a/src/renderer/store/modules/list.js b/src/renderer/store/modules/list.js index b66b118d..fcd688cd 100644 --- a/src/renderer/store/modules/list.js +++ b/src/renderer/store/modules/list.js @@ -345,9 +345,10 @@ const mutations = { }) } - let list = allList[id] + let list = userLists[id] if (!list) return list.name = name + window.eventHub.emit(eventListNames.listChange, [id]) }, moveupUserList(state, { id, isSync }) { if (!isSync) { @@ -359,9 +360,10 @@ const mutations = { const index = userLists.findIndex(l => l.id == id) if (index < 0) return - let targetList = allList[id] + let targetList = userLists[id] userLists.splice(index, 1) userLists.splice(index - 1, 0, targetList) + window.eventHub.emit(eventListNames.listChange, [id]) }, movedownUserList(state, { id, isSync }) { if (!isSync) { @@ -372,9 +374,10 @@ const mutations = { } const index = userLists.findIndex(l => l.id == id) if (index < 0) return - let targetList = allList[id] + let targetList = userLists[id] userLists.splice(index, 1) userLists.splice(index + 1, 0, targetList) + window.eventHub.emit(eventListNames.listChange, [id]) }, setMusicPosition(state, { id, position, list, isSync }) { if (!isSync) {