Browse Source

update chat

luke 6 years ago
parent
commit
2e8f4790d3
1 changed files with 5 additions and 8 deletions
  1. 5 8
      chat/src/components/index.vue

+ 5 - 8
chat/src/components/index.vue

@@ -957,7 +957,7 @@
 				this.reconnectData = setTimeout(() => {
 					this.initWebSocket(this.apiToken);
 					//this.registered()
-					console.log('-----lail-----');
+					// console.log('-----lail-----');
 					this.lockReconnect = false;
 				}, 2000)
 			},
@@ -1018,10 +1018,8 @@
 						localStorage.setItem("tutype", res.data.tutype);
 						//Websocket链接
 
-						setTimeout(() => {
-							this.$dialog.loading.close();
-							this.initWebSocket(this.apiToken);
-						}, 2000)
+						this.$dialog.loading.close();
+						this.initWebSocket(this.apiToken);
 						//console.log(res.data.data)
 					}
 				})
@@ -1441,7 +1439,6 @@
 				console.log(data)
 				this.knowledge = data
 			}
-
 		},
 
 		/**
@@ -1454,8 +1451,7 @@
 			//console.log(this.source);
 			//页面初始化获取系统时间第一步
 			//console.log(this.$md5('userwordscustomer-servicewords1562169600service'));
-			this.$dialog.loading.open('网络连接中...')
-
+			this.$dialog.loading.open('网络连接中...');
 			this.$http.get('/index/index/systime?t=' + 100).then(res => {
 				if (res.data.code == 1) {
 					this.logo = res.data.data.logo;
@@ -1471,6 +1467,7 @@
 					//获取配置信息
 					this.getChatNum();
 				}
+
 			})
 		},