路由;授权页增加端口设置

This commit is contained in:
zh
2025-11-07 10:21:07 +08:00
parent 9609a1e3d2
commit e4bce33b89
6 changed files with 346 additions and 36 deletions

View File

@ -277,6 +277,9 @@ function createWindow(): void {
mainWindow.webContents.send('fullscreen-status-changed', false)
});
mainWindow.on("close", (e) => {
if (isRestart) {
return
}
e.preventDefault();
dialog
.showMessageBox(mainWindow, {
@ -539,6 +542,10 @@ function closeAllWindows() {
});
}
function getmainWindow() {
return mainWindow;
}
const gotTheLock = app.requestSingleInstanceLock();
if (!gotTheLock) {
@ -604,5 +611,7 @@ if (!gotTheLock) {
};
}
export { getmainWindow };
// In this file you can include the rest of your app's specific main process
// code. You can also put them in separate files and require them here.