修改报错,修改全开指令

This commit is contained in:
zyl
2025-11-25 11:57:28 +08:00
parent f965849bba
commit fc9caa941f
12 changed files with 80 additions and 131 deletions

View File

@ -105,10 +105,10 @@ function Init() {
console.log("server error", err);
getmainWindow().webContents.send('udpServerError',"udp服务创建失败尝试更换端口")
});
console.log("port",port)
console.log("port ",port)
server.bind(port);
// sendMsg("AFFG")
sendMsg("A000k #")
sendMsg("A000g #")
}
function sendMsg(val) {
let msg;

View File

@ -138,7 +138,7 @@ function createWindow() {
// 创建启动页窗口
// createSplashWindow();
start();
Init();
let prefix = execPath;
console.log("process.env.NODE_ENV +++", process.env.NODE_ENV);
if (process.env.NODE_ENV === "production") {
@ -176,6 +176,7 @@ function createWindow() {
},
});
mainWindow.loadURL(winURL);
Init();
mainWindow.center();
mainWindow.maximize();
setIpc.Mainfunc(mainWindow);