Browse Source

update pc_chat

luke 6 years ago
parent
commit
f6b16709da
1 changed files with 1 additions and 41 deletions
  1. 1 41
      pc_chat/src/components/chat.vue

+ 1 - 41
pc_chat/src/components/chat.vue

@@ -1212,47 +1212,7 @@
 				// 历史信息
 				if(redata.message_type == 'toOld'){
 					console.log(redata,'历史信息');
-					let obj = {
-						"message_type": "toOld",
-						"data": {
-							"chatLog": [
-								{
-									"id": "1020",
-									"from_id": "14",
-									"from_name": "c_c1001",
-									"from_avatar": "",
-									"to_id": "KF15",
-									"to_name": "9090950",
-									"content": "{\"text\":\"222222\",\"img\":\"\",\"type\":\"user\"}",
-									"time_line": "1565423525",
-									"servicelog_id": "720"
-								},
-								{
-									"id": "1021",
-									"from_id": "KF15",
-									"from_name": "tank",
-									"from_avatar": "",
-									"to_id": "14",
-									"to_name": "c_c1001",
-									"content": "{\"text\":\"444444\",\"img\":\"\"}",
-									"time_line": "1565423528",
-									"servicelog_id": "720"
-								},
-								{
-									"id": "1022",
-									"from_id": "14",
-									"from_name": "c_c1001",
-									"from_avatar": "",
-									"to_id": "KF15",
-									"to_name": "9090950",
-									"content": "{\"text\":\"3333333\",\"img\":\"\",\"type\":\"user\"}",
-									"time_line": "1565423530",
-									"servicelog_id": "720"
-								}
-							],
-							"content": "接入至未结束的会话"
-						}
-					};
+					let obj = redata;
 					this.historyMsgtext = obj.data.content;
 					obj.data.chatLog.forEach(res => {
 						res.content = JSON.parse(res.content)