This commit is contained in:
parent
97c60e0538
commit
291be487a9
|
|
@ -1449,6 +1449,10 @@ export default {
|
|||
|
||||
this.webSocket.onopen = function (evt) {
|
||||
console.log('建立连接成功', evt)
|
||||
|
||||
this.webSocket.send(
|
||||
'{"module":"idcard","function":"beginreadcard","parameter":""}',
|
||||
)
|
||||
}
|
||||
this.webSocket.onclose = function (evt) {
|
||||
console.log('断开连接', evt)
|
||||
|
|
@ -1461,6 +1465,8 @@ export default {
|
|||
}
|
||||
},
|
||||
|
||||
onOpen(message) {},
|
||||
|
||||
// 断开websocket连接
|
||||
closeWebSocket() {
|
||||
this.webSocket.close()
|
||||
|
|
|
|||
Loading…
Reference in New Issue