@@ -10,7 +10,8 @@ function createWindow() {
contextIsolation: false,
},
});
-
+ // 关键:把应用菜单设为空
+ Menu.setApplicationMenu(null);
// 加载 Taro 编译后的 H5 页面
// win.loadFile('./dist/index.html');
win.loadFile(path.join(__dirname, './dist/h5/index.html'));