Ver código fonte

update pc_chat

luke 6 anos atrás
pai
commit
1cd605face
1 arquivos alterados com 5 adições e 5 exclusões
  1. 5 5
      pc_chat/src/components/chat.vue

+ 5 - 5
pc_chat/src/components/chat.vue

@@ -1290,12 +1290,9 @@
 					}
 
 				}
-				//会话超时提示
-				if (redata.message_type == 'overtime') {
-					console.log('接收会话超时');
-				}
 				// 链接客服信息
 				if (redata.message_type == 'connect') {
+					this.willOverTime = false;
 					if (redata.data.evaluate_id > 0) {
 						this.showject = true;
 					} else {
@@ -1518,6 +1515,9 @@
 				}
 				// 历史信息
 				if (redata.message_type == 'toOld') {
+					if(redata.data.chatLog.length > 0){
+						this.customerSviceChat.push({type: 'system', str: 'historyMsg'})
+					}
 					let obj = redata;
 					this.historyMsgtext = obj.data.content;
 					obj.data.chatLog.forEach(res => {
@@ -1531,7 +1531,7 @@
 					})
 
 
-					this.customerSviceChat.push({type: 'system', str: 'historyMsg'})
+
 					this.hisLength = obj.data.chatLog.length
 
 				}