@@ -513,6 +513,13 @@
this.deptOptionsLiandong = response.data
})
},
+ destroyed() { //离开页面关闭Socket连接
+ if (this.websock) {
+ clearInterval(this.setIntervalWesocketPush)
+ this.websock.close()
+ this.websock = null
+ }
+ },
mounted() {
this.websockSid.userId=Cookies.get("userId")