This commit is contained in:
BianLzhaoMin 2025-08-21 10:59:59 +08:00
parent 291be487a9
commit 097467ed34
1 changed files with 4 additions and 4 deletions

View File

@ -1449,10 +1449,6 @@ 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)
@ -1463,6 +1459,10 @@ export default {
this.webSocket.onerror = function (evt) {
console.log('错误', evt)
}
this.webSocket.send(
'{"module":"idcard","function":"beginreadcard","parameter":""}',
)
},
onOpen(message) {},