Explorar el Código

websocket修改

王通 hace 2 años
padre
commit
071ba292a7
Se han modificado 1 ficheros con 9 adiciones y 2 borrados
  1. 9 2
      src/components/vBottomMenu.vue

+ 9 - 2
src/components/vBottomMenu.vue

@@ -804,8 +804,11 @@
 					this.taskList = res.data
 					this.taskCount = res.data.length
 				})
+ const that=this
+        setTimeout(function () {
+          //that.initWebSocket('TASK_SOCKET','/taskPush/',that.websockSid.userId)
+        }, 3000);
 
-        this.initWebSocket('TASK_SOCKET','/taskPush/',this.websockSid.userId)
 			},
 
       selectMessageById(id) {
@@ -826,7 +829,11 @@
           this.messageList = response.data
           this.messageCount = response.data.length
         });
-        this.initWebSopcket('MESSAGE_SOCKET', '/messagePush/', this.websockSid.userId)
+        const that=this
+        setTimeout(function () {
+          //that.initWebSocket('MESSAGE_SOCKET', '/messagePush/', that.websockSid.userId)
+        }, 2000);
+
       },
 			handleCheckedCitiesChangeBan(value) {
 				this.choseLayerSwitchingList(this.banCheckList)