From 4bb999e514258cbabf7727ecca1645ad9d2c442e Mon Sep 17 00:00:00 2001 From: silentdoer <1010993610@qq.com> Date: Mon, 22 May 2023 23:37:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BF=9D=E5=AD=98=E7=9A=84?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E6=B2=A1=E6=9C=89=E9=99=84=E5=8A=A0=E5=90=8E?= =?UTF-8?q?=E7=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index 63b33af..ff44818 100644 --- a/main.js +++ b/main.js @@ -662,7 +662,7 @@ const createMainWindow = () => { }); ipcMain.on('open-image', async(event, args) => { - var filename = `${imagesCacheDir}/img_${args.dataset.id}`; + var filename = `${imagesCacheDir}/img_${args.dataset.id}.jpg`; fs.writeFileSync(filename, args.base64.replace(/^data:image\/png;base64,/, ''), 'base64'); shell.openItem(filename);