ocr刷新
This commit is contained in:
@@ -68,7 +68,8 @@
|
||||
lockReconnect: false,
|
||||
heartCheck: null,
|
||||
formData: {},
|
||||
openPath: ''
|
||||
openPath: '',
|
||||
timer:''
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@@ -82,6 +83,11 @@
|
||||
this.initWebSocket()
|
||||
this.heartCheckFun()
|
||||
},
|
||||
beforeDestroy() {
|
||||
if(this.timer){
|
||||
clearInterval(this.timer)
|
||||
}
|
||||
},
|
||||
destroyed: function() { // 离开页面生命周期函数
|
||||
this.websocketOnclose()
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user