Ver Fonte

6.29修改this的指向

liuqiao há 2 anos atrás
pai
commit
5c1537a981
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/views/index/index.vue

+ 1 - 1
src/views/index/index.vue

@@ -724,7 +724,7 @@ reconnect(){
     that.timeoutnum&&clearTimeout(that.timeoutnum);
     that.timeoutnum= setTimeout(function () {
       //新连接
-      this.initWebSocket();
+      that.initWebSocket();
       that.lockReconnect = false;
     },5000);
   },