路由;授权页增加端口设置
This commit is contained in:
@ -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.
|
||||
|
||||
Reference in New Issue
Block a user