🔧Chore: IPC 通信

This commit is contained in:
2025-10-30 09:08:49 +08:00
parent 9897662b35
commit b5b0d415ac
3 changed files with 11 additions and 2 deletions
+2 -1
View File
@@ -1,4 +1,4 @@
const { app, BrowserWindow } = require("electron");
const { app, BrowserWindow, ipcMain } = require("electron");
const path = require("node:path");
@@ -15,6 +15,7 @@ const createWindow = () => {
};
app.whenReady().then(() => {
ipcMain.handle("ping", () => "pong");
createWindow();
});