Commit ebcb87ea authored by rocosen's avatar rocosen

Update main.ts

parent d56738da
...@@ -73,7 +73,10 @@ ipcMain.on('createNewWindow', () => { ...@@ -73,7 +73,10 @@ ipcMain.on('createNewWindow', () => {
}); });
// win.loadURL(path.join('file:', __dirname, 'new.html')); //new.html是新开窗口的渲染进程 // win.loadURL(path.join('file:', __dirname, 'new.html')); //new.html是新开窗口的渲染进程
// win.loadURL(winURL); // win.loadURL(winURL);
win.loadURL(resolveHtmlPath('index.html/#/site')); // win.loadURL(resolveHtmlPath('index.html/#/site'));
win.loadFile(resolveHtmlPath('index.html'), {
hash: 'site',
});
// win.loadURL(process.resourcesPath) // win.loadURL(process.resourcesPath)
// win.webContents.openDevTools() // win.webContents.openDevTools()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment