feat: 新增依赖

This commit is contained in:
duanshuwen
2025-09-23 18:57:14 +08:00
parent c77c5350aa
commit 089a86c66b
8 changed files with 1087 additions and 126 deletions

View File

@@ -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");
}