优化
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import path from "path";
|
||||
import { app, BrowserWindow, ipcMain, net } from "electron";
|
||||
import { app, BrowserWindow, ipcMain } from "electron";
|
||||
import os from "os";
|
||||
// const SerialPort = require("serialport");
|
||||
|
||||
@@ -41,16 +41,6 @@ app.whenReady().then(() => {
|
||||
app.quit();
|
||||
});
|
||||
|
||||
// 监听网络在线事件
|
||||
// net.on("online", () => {
|
||||
// console.log("网络连接恢复");
|
||||
// });
|
||||
|
||||
// // 监听网络离线事件
|
||||
// net.on("offline", () => {
|
||||
// console.log("网络连接断开");
|
||||
// });
|
||||
|
||||
// 给渲染进程返回打印机列表
|
||||
ipcMain.on("getPrintList", () => {
|
||||
win.webContents.getPrintersAsync().then((res) => {
|
||||
|
||||
Reference in New Issue
Block a user