This commit is contained in:
24kycj
2024-11-05 09:23:42 +08:00
parent e109b28eec
commit d375616372
23 changed files with 316 additions and 703 deletions
+11 -4
View File
@@ -1,4 +1,4 @@
import { app, BrowserWindow } from 'electron'
import { app, BrowserWindow, Menu } from 'electron'
import '../renderer/store'
/**
@@ -19,13 +19,20 @@ function createWindow () {
* Initial window options
*/
mainWindow = new BrowserWindow({
width: 1920,
height: 1080,
useContentSize: true,
width: 1920
show: false,
fullscreen: true,
webPreferences: {
nodeIntegration: true
}
})
mainWindow.loadURL(winURL)
// 禁用默认菜单
Menu.setApplicationMenu(null);
mainWindow.maximize()
mainWindow.show()
mainWindow.on('closed', () => {
mainWindow = null
})