Explorar el Código

6.29修改this的指向

liuqiao hace 2 años
padre
commit
5c1537a981
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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);
   },