修改报错,修改全开指令
This commit is contained in:
@ -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;
|
||||
|
||||
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user