mirror of
https://github.com/ZiuChen/ClipboardManager.git
synced 2025-06-06 13:24:06 +08:00
fix: #45 多选复制时旧在前 新在后
This commit is contained in:
parent
9a00d36c7e
commit
a2c3a578e1
@ -110,10 +110,13 @@ const handleMultiCopyBtnClick = (isPaste) => {
|
||||
})
|
||||
window.copy({
|
||||
type: 'file',
|
||||
data: JSON.stringify(filePathArray)
|
||||
data: JSON.stringify(filePathArray.reverse())
|
||||
})
|
||||
} else {
|
||||
const result = itemList.map((item) => item.data).join('\n')
|
||||
const result = itemList
|
||||
.map((item) => item.data)
|
||||
.reverse()
|
||||
.join('\n')
|
||||
window.copy({
|
||||
type: 'text',
|
||||
data: result
|
||||
|
Loading…
x
Reference in New Issue
Block a user