改为加载本地index文件
This commit is contained in:
parent
b49fb14e91
commit
ea6a5481ea
@ -11,7 +11,7 @@ let win;
|
|||||||
function createWindow() {
|
function createWindow() {
|
||||||
// Create the browser window.
|
// Create the browser window.
|
||||||
win = new BrowserWindow({
|
win = new BrowserWindow({
|
||||||
width: 800,
|
width: 800,
|
||||||
height: 600,
|
height: 600,
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
nodeIntegration: true
|
nodeIntegration: true
|
||||||
@ -20,8 +20,8 @@ function createWindow() {
|
|||||||
|
|
||||||
// and load the index.html of the app.
|
// and load the index.html of the app.
|
||||||
// http://h5tools.client.jy/index.html
|
// 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.
|
// Open the DevTools.
|
||||||
// win.webContents.openDevTools();
|
// win.webContents.openDevTools();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user