fix: `win.loadFile()` path

This commit is contained in:
草鞋没号 2022-06-06 20:27:23 +08:00
parent 23a98a26b4
commit 9150036761
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ async function createWindow() {
})
if (app.isPackaged) {
win.loadFile(join(__dirname, '../index.html'))
win.loadFile(join(__dirname, '../../index.html'))
} else {
win.loadURL(url)
// win.webContents.openDevTools()