浏览代码

6.29修改this的指向

liuqiao 2 年之前
父节点
当前提交
5c1537a981
共有 1 个文件被更改,包括 1 次插入1 次删除
  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);
   },