From 8949383ade869b93000b22638fe7c48d34f57b80 Mon Sep 17 00:00:00 2001 From: lyswhut Date: Sat, 4 Dec 2021 01:55:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=97=E8=A1=A8=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/store/modules/list.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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) {