This commit is contained in:
parent
097467ed34
commit
738c6b98a7
|
|
@ -1449,6 +1449,10 @@ export default {
|
||||||
|
|
||||||
this.webSocket.onopen = function (evt) {
|
this.webSocket.onopen = function (evt) {
|
||||||
console.log('建立连接成功', evt)
|
console.log('建立连接成功', evt)
|
||||||
|
|
||||||
|
this.webSocket.send(
|
||||||
|
'{"module":"idcard","function":"beginreadcard","parameter":""}',
|
||||||
|
)
|
||||||
}
|
}
|
||||||
this.webSocket.onclose = function (evt) {
|
this.webSocket.onclose = function (evt) {
|
||||||
console.log('断开连接', evt)
|
console.log('断开连接', evt)
|
||||||
|
|
@ -1459,10 +1463,6 @@ export default {
|
||||||
this.webSocket.onerror = function (evt) {
|
this.webSocket.onerror = function (evt) {
|
||||||
console.log('错误', evt)
|
console.log('错误', evt)
|
||||||
}
|
}
|
||||||
|
|
||||||
this.webSocket.send(
|
|
||||||
'{"module":"idcard","function":"beginreadcard","parameter":""}',
|
|
||||||
)
|
|
||||||
},
|
},
|
||||||
|
|
||||||
onOpen(message) {},
|
onOpen(message) {},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue