mirror of
https://github.com/rubickCenter/rubick
synced 2025-06-17 17:16:57 +08:00
ref: 修复win下多文件复制
This commit is contained in:
parent
2beac06e7c
commit
e5ff219685
@ -17,8 +17,9 @@ export default function getCopyFiles(): Array<any> | null {
|
||||
return null;
|
||||
}
|
||||
} else if (commonConst.windows()) {
|
||||
const filePath = clipboard.readBuffer('FileNameW').toString('ucs2').replace(RegExp(String.fromCharCode(0), 'g'), '');
|
||||
fileInfo = [filePath];
|
||||
/* eslint-disable */
|
||||
const clipboardEx = require("electron-clipboard-ex");
|
||||
fileInfo = clipboardEx.readFilePaths();
|
||||
// todo
|
||||
} else {
|
||||
if (!commonConst.linux()) return null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user