🐛 Fix(custom): fix copy item order issue

ISSUES CLOSED: #386
This commit is contained in:
Kuingsmile
2025-08-18 13:52:29 +08:00
parent 284f381151
commit 8df94c0c9f
2 changed files with 6 additions and 1 deletions

View File

@@ -84,7 +84,6 @@ function resolveClipboardImageGenerator() {
}) })
} else { } else {
clipboardFiles.forEach(item => { clipboardFiles.forEach(item => {
console.log(`Updating ${item.origin} to ${item.dest}`)
diffFilesAndUpdate(item.origin, item.dest) diffFilesAndUpdate(item.origin, item.dest)
}) })
} }

View File

@@ -1045,6 +1045,12 @@ function handleChooseImage(val: boolean, index: number) {
const id = filterList.value[i].id! const id = filterList.value[i].id!
choosedList[id] = true choosedList[id] = true
} }
try {
delete choosedList[currentItem.id!]
choosedList[currentItem.id!] = val
} catch (e) {
console.error(e)
}
} }
lastChoosed.value = index lastChoosed.value = index
} }