Prechádzať zdrojové kódy

板块调整,付费调整

qymljy 2 rokov pred
rodič
commit
62121d8276
1 zmenil súbory, kde vykonal 3 pridanie a 1 odobranie
  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);