优化
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user