zhuhao_dev #342

Merged
zhuhao merged 7 commits from zhuhao_dev into main 2024-10-19 17:34:05 +08:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 770a847e91 - Show all commits

View File

@ -95,7 +95,6 @@ function createMainWindow() {
frame: false, // 无边框
autoHideMenuBar: true,
maximizable: false,
fullscreen: true,
icon: join(__dirname, '../../resources/logo2.ico'),
...(process.platform === 'linux' ? { icon } : {}),
webPreferences: {
@ -138,6 +137,7 @@ function createMainWindow() {
// mainWindow.setAlwaysOnTop(true, "screen-saver") // 将窗口设置为顶层窗口
// mainWindow.setVisibleOnAllWorkspaces(true) // 如果窗口在所有工作区都可见
mainWindow.maximize();
// 第三步: 开启remote服务
remote.enable(mainWindow.webContents)
}