mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/lyswhut/lx-music-desktop.git
synced 2026-09-20 08:04:00 +08:00
修复列表问题
This commit is contained in:
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user