手动同步了客户端中的更改

This commit is contained in:
2023-12-18 06:57:24 +00:00
parent 59229eb1b5
commit b31e74d0d3
5 changed files with 2216 additions and 7 deletions

View File

@ -1,8 +1,19 @@
const { app, BrowserWindow } = require('electron');
function createWindow() {
const win = new BrowserWindow();
win.loadURL('http://localhost:4000/');
const win = new BrowserWindow({
fullscreen: true, // 设置默认全屏
frame: false, // 隐藏导航栏
});
win.loadURL('http://bookstore.zymsite.ink/');
// 监听按键事件
win.webContents.on('before-input-event', (event, input) => {
if (input.key === 'Escape') {
app.quit(); // 按下Esc键时退出程序
}
});
}
app.whenReady().then(createWindow);