mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-01-19 20:07:06 +08:00
remove DevTools
This commit is contained in:
parent
cadda6181c
commit
347bfde8a1
@ -83,8 +83,8 @@ ipcMain.handle("open-win", (event, arg) => {
|
|||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
// 🚧 Use ['ENV_NAME'] avoid vite:define plugin
|
// 🚧 Use ['ENV_NAME'] avoid vite:define plugin
|
||||||
const url = `http://${process.env["VITE_DEV_SERVER_HOST"]}:${process.env["VITE_DEV_SERVER_PORT"]}/#${arg.url}`
|
const url = `http://${process.env["VITE_DEV_SERVER_HOST"]}:${process.env["VITE_DEV_SERVER_PORT"]}/#${arg}`
|
||||||
childWindow.loadURL(url);
|
childWindow.loadURL(url);
|
||||||
childWindow.webContents.openDevTools({ mode: "undocked", activate: true })
|
// childWindow.webContents.openDevTools({ mode: "undocked", activate: true })
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user