From 9afafec9d6d2bc2fc68c49b90c8c3b9ff725c445 Mon Sep 17 00:00:00 2001 From: lyswhut Date: Sat, 4 Dec 2021 02:25:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=97=E8=A1=A8=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/store/modules/list.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/store/modules/list.js b/src/renderer/store/modules/list.js index bce27dd7..1a24a212 100644 --- a/src/renderer/store/modules/list.js +++ b/src/renderer/store/modules/list.js @@ -361,7 +361,7 @@ const mutations = { const index = userLists.findIndex(l => l.id == id) if (index < 0) return - let targetList = userLists[id] + let targetList = userLists[index] userLists.splice(index, 1) userLists.splice(index - 1, 0, targetList) window.eventHub.emit(eventListNames.listChange, [id]) @@ -375,7 +375,7 @@ const mutations = { } const index = userLists.findIndex(l => l.id == id) if (index < 0) return - let targetList = userLists[id] + let targetList = userLists[index] userLists.splice(index, 1) userLists.splice(index + 1, 0, targetList) window.eventHub.emit(eventListNames.listChange, [id])