🐛 修复复制文件bug

This commit is contained in:
muwoo
2022-01-13 12:04:53 +08:00
parent 8521262344
commit 6b96df3da5
4 changed files with 13 additions and 3 deletions

View File

@@ -35,6 +35,8 @@ export default () => {
win.loadURL("app://./index.html");
}
win.webContents.openDevTools();
protocol.interceptFileProtocol("image", (req, callback) => {
const url = req.url.substr(8);
callback(decodeURI(url));