From 1d4ea56ef7f2d9f127c42121ad9d945e5461edaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E8=8D=A3=E5=8D=87?= <3136352472@qq.com> Date: Mon, 16 Dec 2019 14:22:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=B1=BB=E5=9E=8B(=E6=96=B0?= =?UTF-8?q?=E5=8A=9F=E8=83=BD),=E5=BD=B1=E5=93=8D=E7=9A=84=E8=8C=83?= =?UTF-8?q?=E5=9B=B4(=E4=BB=A3=E7=A0=81=E9=80=BB=E8=BE=91),[=E6=B5=8B?= =?UTF-8?q?=E8=AF=95]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 + index.js | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fe86c36..89924c4 100644 --- a/CHANGELOG.md +++ b/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] :测试;影响的范围(代码逻辑) diff --git a/index.js b/index.js index 7048ca3..df3fc26 100644 --- a/index.js +++ b/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);