Forráskód Böngészése

板块调整,付费调整

qymljy 2 éve
szülő
commit
62121d8276
1 módosított fájl, 3 hozzáadás és 1 törlés
  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);