electron vue 设置全屏
时间: 2023-08-22 19:13:31 浏览: 139
在Electron-Vue中,要设置窗口为全屏,可以使用`setFullScreen`方法。在创建窗口的函数中,可以添加以下代码来设置窗口为全屏:
```javascript
function createWindow() {
mainWindow = new BrowserWindow({
height: 720,
useContentSize: true,
width: 1280
});
// 设置全屏
mainWindow.setFullScreen(true);
// 其他代码...
}
```
这样,窗口将会以全屏模式打开。\[2\]
#### 引用[.reference_title]
- *1* *3* [基于electron vue 后台管理模板](https://blog.csdn.net/qq_44795810/article/details/129709035)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [Electron-Vue 全屏隐藏菜单栏 隐藏关闭按钮 最大化 最小化按钮](https://blog.csdn.net/qq_39706690/article/details/120860932)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文