Browse Source

修改类型(新功能),影响的范围(代码逻辑),[测试]

master
郑荣升 5 years ago
committed by wailovet
parent
commit
1d4ea56ef7
  1. 1
      CHANGELOG.md
  2. 10
      index.js

1
CHANGELOG.md

@ -5,6 +5,7 @@
### 2019-12-16
#### 新功能
+ 3136352472 [14:22:04] :测试;影响的范围(代码逻辑)
+ 3136352472 [14:21:02] :测试;影响的范围(代码逻辑)
+ 3136352472 [14:19:09] :测试;影响的范围(代码逻辑)
+ 3136352472 [14:14:30] :测试;影响的范围(代码逻辑)

10
index.js

@ -1,9 +1,9 @@
const {app, BrowserWindow,screen } = require('electron');
function createWindow() {
let size = screen.getPrimaryDisplay().workAreaSize
let width = parseInt(size.width * 1)
let height = parseInt(size.height * 1)
let size = screen.getPrimaryDisplay().workAreaSize;
let width = parseInt(size.width * 1);
let height = parseInt(size.height * 1);
// 创建浏览器窗口
@ -15,8 +15,8 @@ function createWindow() {
});
// 加载index.html文件
win.loadFile('index.html')
win.webContents.openDevTools()
win.loadFile('index.html');
// win.webContents.openDevTools()
}
app.on('ready', createWindow);
Loading…
Cancel
Save