1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

[门禁端&后端&小程序] 完成门禁端;完成小程序扫码跳转页面;完成后端获取不限制的小程序场景码接口

This commit is contained in:
2022-11-28 18:36:52 +08:00
parent 42e3952b83
commit 8640c2b413
20 changed files with 365 additions and 38 deletions

View File

@@ -6,16 +6,23 @@ console.log(`This platform is ${platform}`);
const createWindow = () => {
const mainWindow = new BrowserWindow({
width: 800,
height: 600,
width: 1080,
minWidth: 760,
height: 720,
minHeight: 480,
webPreferences: {
preload: path.join(__dirname, 'preload.js')
},
})
mainWindow.loadFile('html/index.html')
// mainWindow.fullScreen = true;
//配置ESC键退出全屏
globalShortcut.register('ESC', () => {
mainWindow.setFullScreen(false);
})
mainWindow.webContents.openDevTools()
// mainWindow.webContents.openDevTools()
}
app.whenReady().then(() => {