|
|
@@ -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
|
|
|
|
|
|
}
|