feat: 批量生成 IPC handler
This commit is contained in:
parent
1c164ea3d9
commit
b3be6f5f03
6
electron/ipc/generateIpc.js
Normal file
6
electron/ipc/generateIpc.js
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
const { ipcMain } = require("electron");
|
||||||
|
const { callPython } = require("./templateIpc");
|
||||||
|
|
||||||
|
ipcMain.handle("generate:run", async (_, req) => {
|
||||||
|
return callPython({ action: "generate", ...req });
|
||||||
|
});
|
||||||
Loading…
x
Reference in New Issue
Block a user