From ea6a5481ea1d4490dac924bfc1f80fee27f7961c Mon Sep 17 00:00:00 2001 From: zhl Date: Fri, 21 Aug 2020 11:25:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E4=B8=BA=E5=8A=A0=E8=BD=BD=E6=9C=AC?= =?UTF-8?q?=E5=9C=B0index=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/main.js b/app/main.js index 2389dd1..aa1dac3 100644 --- a/app/main.js +++ b/app/main.js @@ -11,7 +11,7 @@ let win; function createWindow() { // Create the browser window. win = new BrowserWindow({ - width: 800, + width: 800, height: 600, webPreferences: { nodeIntegration: true @@ -20,8 +20,8 @@ function createWindow() { // and load the index.html of the app. // http://h5tools.client.jy/index.html - win.loadURL("http://127.0.0.1:12346/index.html"); - + // win.loadURL("http://127.0.0.1:12346/index.html"); + win.loadFile('../index.html') // Open the DevTools. // win.webContents.openDevTools();