This commit is contained in:
BianLzhaoMin 2025-08-21 11:01:28 +08:00
parent 097467ed34
commit 738c6b98a7
1 changed files with 4 additions and 4 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)
@ -1459,10 +1463,6 @@ export default {
this.webSocket.onerror = function (evt) {
console.log('错误', evt)
}
this.webSocket.send(
'{"module":"idcard","function":"beginreadcard","parameter":""}',
)
},
onOpen(message) {},