瀏覽代碼

板块调整,付费调整

qymljy 1 年之前
父節點
當前提交
62121d8276
共有 1 個文件被更改,包括 3 次插入1 次删除
  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);