This commit is contained in:
BianLzhaoMin 2025-08-21 10:56:47 +08:00
parent 97c60e0538
commit 291be487a9
1 changed files with 6 additions and 0 deletions

View File

@ -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()