| | |
| | | import { cwd } from 'process' |
| | | import { ipcRenderer } from 'electron' |
| | | import {creatorClient} from './sockteStomp' |
| | | import {connect} from './socketClient' |
| | | import {sockteStore} from '@/stores/sockteInfo' |
| | | import { patientInfoStore } from '@/stores/patient' |
| | | import { confingInfoStore } from '@/stores/StoresConfing' |
| | | import os from 'os' |
| | | // import internetAvailable from "internet-available" |
| | | var internetAvailable = require("internet-available") |
| | |
| | | console.log('配置文件没有配置') |
| | | } |
| | | else if(args.length>0&&args[0].clientCode.length>0){ |
| | | console.log('配置文件读取') |
| | | clientCode=args[0].clientCode |
| | | // 建立sockte 通讯 |
| | | deviceList=args[0].deviceList |
| | | creatorClient(args[0]) |
| | | // 存放conging到仓库 |
| | | confingInfoStore().setconfingInfo(args[0]) |
| | | // connect() |
| | | // creatorClient(args[0]) |
| | | |
| | | } |
| | | } |
| | |
| | | } |
| | | ) |
| | | break |
| | | case "人脸识别": |
| | | sockteStore().setfaceSockte( |
| | | { |
| | | deviceName:res.deviceName, |
| | | type:"人脸识别", |
| | | result:res.result, |
| | | resultTime:res.resultTime, |
| | | state:2 |
| | | } |
| | | ) |
| | | break |
| | | |
| | | default: |
| | | console.log('有配置类型没有匹配') |
| | | } |