改为加载本地index文件

This commit is contained in:
zhl 2020-08-21 11:25:36 +08:00
parent b49fb14e91
commit ea6a5481ea

View File

@ -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();