修复列表问题

pull/733/head
lyswhut 2021-12-04 02:25:55 +08:00
parent c9cb84a28d
commit 9afafec9d6
1 changed files with 2 additions and 2 deletions

View File

@ -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])