Commit 5ce66dc4 authored by rocosen's avatar rocosen

Update main.ts

parent b80acaa2
......@@ -45,7 +45,7 @@ function urls(per: any) {
}
const winURL = process.env.NODE_ENV === 'development'
const winURL = process.env.NODE_ENV !== 'development'
? `http://localhost:1212`
: `file://${path.resolve(__dirname, '../renderer/')}`
......@@ -72,8 +72,8 @@ ipcMain.on('createNewWindow', () => {
// parent: win, //win是主窗口
});
// win.loadURL(path.join('file:', __dirname, 'new.html')); //new.html是新开窗口的渲染进程
win.loadURL(winURL);
// win.loadURL(winURL);
win.loadURL(resolveHtmlPath('index.html'));
// win.loadURL(process.resourcesPath)
// 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