From 995f645c1f9d7c9bdc7462806c2506820397cf65 Mon Sep 17 00:00:00 2001
From: chenyincheng <501753378@qq.com>
Date: 星期三, 28 十二月 2022 21:12:02 +0800
Subject: [PATCH] 添加刷脸识别
---
electron/main/index.ts | 25 ++++++++++++-------------
1 files changed, 12 insertions(+), 13 deletions(-)
diff --git a/electron/main/index.ts b/electron/main/index.ts
index 21420db..b1f4295 100644
--- a/electron/main/index.ts
+++ b/electron/main/index.ts
@@ -66,7 +66,7 @@
async function createWindow() {
win = new BrowserWindow({
title: 'Main window',
- fullscreen: true,
+ fullscreen: false,
// autoHideMenuBar:true,
webPreferences: {
preload: splash,
@@ -84,10 +84,9 @@
// 测试推送消息到Renderer进程
win.webContents.on('did-finish-load', () => {
creatorKoa(win)
- win?.webContents.send('message-koa','nihao0-----')
win?.webContents.send('getScreenTimeout',store.get('screenTimeout'))
win?.webContents.send('getPcName',store.get('machineName'))
- win?.webContents.send('getConfigData',store.get('clientCode'),store.path)
+ win?.webContents.send('getConfigData',store.get(),store.path)
})
// Make all links open with the browser, not with the application
@@ -150,16 +149,16 @@
"machineName": arg.machineName,
"screenTimeout": arg.screenTimeout,
}
- //对比两端配置文件
- if(JSON.stringify(mode1)!=JSON.stringify(mode2)){
- //更新cofing.json
- console.log('update confing.json')
- store.set(mode2)
- // 重新建立sockte 通讯
- win?.webContents.send('getScreenTimeout',store.get('screenTimeout'))
- win?.webContents.send('getPcName',store.get('machineName'))
- win?.webContents.send('getConfigData',store.get('clientCode'),store.path)
- }
+ // //对比两端配置文件
+ // if(JSON.stringify(mode1)!=JSON.stringify(mode2)){
+ // //更新cofing.json
+ // console.log('update confing.json')
+ // store.set(mode2)
+ // // 重新建立sockte 通讯
+ // win?.webContents.send('getScreenTimeout',store.get('screenTimeout'))
+ // win?.webContents.send('getPcName',store.get('machineName'))
+ // win?.webContents.send('getConfigData',store.get('clientCode'),store.path)
+ // }
})
\ No newline at end of file
--
Gitblit v1.8.0