const { Menu} = require('electron')

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