Browse Source

6.29修改this的指向

liuqiao 2 năm trước cách đây
mục cha
commit
5c1537a981
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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);
   },