34
chenyc
2023-08-15 c8e147509a41dc16e80a4fbc60055a18a4de9318
src/samples/node-api.ts
@@ -36,6 +36,7 @@
})
// 主进程获取配置项完成sockte注册和httpshu
ipcRenderer.on('getConfigData',(_event,...args)=>{
  console.log('----------------')
  console.log("config.json",...args)
  if(args!==null){
    if(args[0]===undefined){  
@@ -44,13 +45,8 @@
    else if(args.length>0&&args[0].clientCode.length>0){
      console.log('配置文件读取')
      clientCode=args[0].clientCode
      // 建立sockte 通讯
      deviceList=args[0].deviceList
      // 存放conging到仓库
      confingInfoStore().setconfingInfo(args[0])
      // connect()
      // creatorClient(args[0])
    }
  }