From 0e6b5cc33a84f6cb807a3a00982066f6ab806ebb Mon Sep 17 00:00:00 2001 From: hello8693 <1320998105@qq.com> Date: Mon, 5 Aug 2024 18:08:20 +0800 Subject: [PATCH] =?UTF-8?q?fix(ipc/window):=20=E4=BF=AE=E6=AD=A3readFile?= =?UTF-8?q?=E6=96=B9=E6=B3=95=E7=9A=84=E8=B0=83=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复了`prog:loadjson`事件处理函数中的一个错误,该错误涉及调用`fileUtils.readFile`方法时缺少结束分号。此更改确保了代码的一致性和正确性,符合语言的语法规则。 --- src/main/ipc/window.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/ipc/window.ts b/src/main/ipc/window.ts index ffd9106..53a9a28 100644 --- a/src/main/ipc/window.ts +++ b/src/main/ipc/window.ts @@ -24,10 +24,9 @@ const ipcWindow = { ipcMain.on('prog:loadjson', async (event) => { const window = BrowserWindow.fromId(event.sender.id); - const file = await fileUtils.readFile() + const file = await fileUtils.readFile(); await window.webContents.send('common:openFile', file); }); - } };