启动时关闭菜单栏

This commit is contained in:
chenqiang 2025-09-01 10:07:38 +08:00
parent b6bc4b3a04
commit fd2a4bc6eb

View File

@ -35,7 +35,6 @@ async function createWindow() {
width: 800, // 默认宽度(实际会被最大化覆盖)
height: 600, // 默认高度(实际会被最大化覆盖)
show: false, // 先隐藏窗口,避免闪烁
// frame: false, // 无边框窗口(可选,根据需求决定是否保留)
webPreferences: {
// 改为使用绝对路径解析
preload: require('path').join(process.cwd(), 'src/preload.js'),