修改程序全屏和菜单栏隐藏

main
suixy 2 months ago
parent f4d8f4bd8d
commit b8ff7b1b5b

@ -9,6 +9,8 @@ function createWindow() {
const win = new BrowserWindow({ const win = new BrowserWindow({
width: 800, width: 800,
height: 600, height: 600,
fullscreen: true,
autoHideMenuBar: true,
webPreferences: { webPreferences: {
preload: path.join(__dirname, 'preload.js'), // preload 文件 preload: path.join(__dirname, 'preload.js'), // preload 文件
contextIsolation: true, contextIsolation: true,

Loading…
Cancel
Save