Explorar el Código

板块调整,付费调整

qymljy hace 1 año
padre
commit
62121d8276
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      src/components/socketMessage/index.vue

+ 3 - 1
src/components/socketMessage/index.vue

@@ -104,7 +104,9 @@
     },
     destroyed () {
       // 销毁监听
-      this.socket.onclose = this.close
+      let that = this
+      this.socket.onclose = that.close
+
     },
     beforeDestroy () {
       clearInterval(this.realTimeClData);