From f787bf4f4631b2ecb6bb6b46f52a9c7e3f8f8cc0 Mon Sep 17 00:00:00 2001
From: chenyincheng <501753378@qq.com>
Date: 星期一, 26 十二月 2022 19:30:30 +0800
Subject: [PATCH] up

---
 src/samples/node-api.ts |   26 ++++++--------------------
 1 files changed, 6 insertions(+), 20 deletions(-)

diff --git a/src/samples/node-api.ts b/src/samples/node-api.ts
index 10f8b58..5dbbd94 100644
--- a/src/samples/node-api.ts
+++ b/src/samples/node-api.ts
@@ -37,28 +37,14 @@
 ipcRenderer.on('getConfigData',(_event,...args)=>{
   console.log("config.json",...args)
   if(args!==null){
-    if(args[0]===undefined){
-      // alert("配置文件没有写入配置,请检查配置文件 文件路径:"+args[2])
-      ElMessageBox.prompt('没有设定客户编号,请输入客户编号并保存', '警告', {
-        confirmButtonText: '保存',
-        showClose:false,
-        showCancelButton:false,
-        inputErrorMessage: 'Invalid Email',
-      })
-        .then(({ value }) => {
-          const mode={
-            clientCode:value,
-            machineName:os.hostname(),
-            screenTimeout: 60,
-          }
-          ipcRenderer.send('setConfingData',mode)
-        }) 
-      
+    if(args[0]===undefined){  
+      console.log('配置文件没有配置')
     }
-    else if(args.length>0&&args[0].length>0){
-      clientCode=args[0]
+    else if(args.length>0&&args[0].clientCode.length>0){
+      clientCode=args[0].clientCode
       // 建立sockte 通讯
-      creatorClient([],clientCode)
+      deviceList=args[0].deviceList
+      creatorClient(args[0])
   
     }
   }

--
Gitblit v1.8.0