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