This commit is contained in:
parent
e897d9de4b
commit
588f026e5f
|
|
@ -1689,6 +1689,7 @@ export default {
|
|||
this.webSocket = new WebSocket(
|
||||
this.idCardReaderForm.idCardReaderAddress,
|
||||
)
|
||||
|
||||
const _this = this
|
||||
this.webSocket.onopen = function (evt) {
|
||||
console.log('连接成功', evt)
|
||||
|
|
@ -1780,7 +1781,10 @@ export default {
|
|||
|
||||
// 断开websocket连接
|
||||
closeWebSocket() {
|
||||
if (this.isConnected) {
|
||||
this.webSocket.close()
|
||||
}
|
||||
this.webSocket = null
|
||||
},
|
||||
|
||||
// 人脸照片验证
|
||||
|
|
@ -1829,7 +1833,6 @@ export default {
|
|||
})
|
||||
|
||||
this.getLotProjectSelectList()
|
||||
this.createWebSocket()
|
||||
},
|
||||
|
||||
beforeDestroy() {
|
||||
|
|
|
|||
|
|
@ -247,6 +247,10 @@ export default {
|
|||
this.queryDetailsId = ''
|
||||
this.dialogConfig.outerVisible = true
|
||||
}
|
||||
|
||||
this.$nextTick(() => {
|
||||
this.$refs.addOrEditFormContentRef.createWebSocket()
|
||||
})
|
||||
},
|
||||
|
||||
// 删除
|
||||
|
|
|
|||
Loading…
Reference in New Issue