| | |
| | | stompClient.send(`/app/workstation/config/set/${clientCode}/${pcName}`,{},JSON.stringify({"clientCode":clientCode,"machineName":pcName})) |
| | | |
| | | } |
| | | <<<<<<< HEAD |
| | | // 更新sockte链接状态 |
| | | sockteStore().setsockteIsLink(true) |
| | | console.log(sockteStore().isLink) |
| | | if(devices!==undefined&&devices.length>0){ |
| | | ======= |
| | | |
| | | // 更新sockte链接状态 |
| | | sockteStore().setsockteIsLink(true) |
| | | console.log(sockteStore().isLink) |
| | | console.log(devices) |
| | | if(devices!==undefined&&devices!=null &&devices.length>0){ |
| | | >>>>>>> 5fc7472d0ec6bff69b874f33eeccc30541f7f6df |
| | | devices.forEach(de=>{ |
| | | if(stompClient!==null){ |
| | | stompClient.subscribe(`/queue/${clientCode}/${de.deviceName}/result`,callback) |
| | |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | |
| | | const disconnectCallBack=function(){ |
| | | console.log("disconnect"); |