版本更新
This commit is contained in:
@@ -98,6 +98,8 @@ app.whenReady().then(() => {
|
||||
// 给渲染进程返回打印机列表
|
||||
ipcMain.on("getPrintList", () => {
|
||||
win.webContents.getPrintersAsync().then((res) => {
|
||||
console.log("打印机列表", res);
|
||||
|
||||
win.webContents.send("printList", res);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user