1
2
3
4
5
6
const { Menu} = require('electron')

...
// 隐藏菜单
Menu.setApplicationMenu(null)