feat: 新增依赖
This commit is contained in:
@@ -9,9 +9,10 @@ const createWindow = () => {
|
||||
const win = new BrowserWindow({
|
||||
width: 800,
|
||||
height: 600,
|
||||
frame: false, // 不要自带的窗口
|
||||
// frame: false, // 不要自带的窗口
|
||||
title: "China Fellou Plus",
|
||||
webPreferences: {
|
||||
preload: join(__dirname, "./preload/index.js"),
|
||||
preload: join(__dirname, "../preload/index.js"),
|
||||
},
|
||||
});
|
||||
|
||||
@@ -19,7 +20,7 @@ const createWindow = () => {
|
||||
win.loadURL("http://localhost:5173");
|
||||
|
||||
// 打开开发工具 { mode: "detach" }
|
||||
// win.webContents.openDevTools();
|
||||
win.webContents.openDevTools({ mode: "detach" });
|
||||
} else {
|
||||
win.loadFile("../dist/index.html");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user