electron-vue学习笔记(1):工具栏和标题栏的设置

使用electron-vue是为了桌面应用程序,本来首选是微软的.net,但是收费你懂得,个人研究研究eletron-vue。如有错误,请别骂我~

本人建立工程是根据:https://simulatedgreg.gitbooks.io/electron-vue/cn/getting_started.html  提供的方法建立,建立的末尾出现关于README的警告,应该没有关系。选择的yarn来下载依赖。

建立后目录如下图所示:

electron-vue学习笔记(1):工具栏和标题栏的设置

去除标题栏在,index.js中设置BrowserWindow的属性frame为 false,去除menu设置mainWindow.setMenu(null)

electron-vue学习笔记(1):工具栏和标题栏的设置

代码截图:

electron-vue学习笔记(1):工具栏和标题栏的设置

 

另:BrowserWindow详细说明:

https://www.electronjs.org/docs/api/browser-window