This commit is contained in:
gyq
2024-08-28 15:13:14 +08:00
parent 3047fe0404
commit 2d2a014bc4
2 changed files with 115 additions and 12 deletions

View File

@@ -1,7 +1,6 @@
import path from "path";
import { app, BrowserWindow, ipcMain } from "electron";
import os from "os";
// const SerialPort = require("serialport");
let win;
app.whenReady().then(() => {
@@ -62,16 +61,6 @@ app.whenReady().then(() => {
win.webContents.send("getOSmacRes", mac);
});
// ipcMain.on("getSerialPort", () => {
// SerialPort.SerialPort.list().then(
// (ports) => {
// console.log(ports);
// win.webContents.send("seriaportList", ports);
// },
// (err) => console.error(err)
// );
// });
// 创建打印小票子窗口
// const printWin = new BrowserWindow({
// show: false,