|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
* @Author: ch
|
|
|
|
|
* @Date: 2022-05-18 14:54:47
|
|
|
|
|
* @LastEditors: ch
|
|
|
|
|
* @LastEditTime: 2022-06-13 21:56:37
|
|
|
|
|
* @LastEditTime: 2022-06-13 22:17:14
|
|
|
|
|
* @Description: file content
|
|
|
|
|
*/
|
|
|
|
|
import { CreateUUID, FormatDate, ToAsyncAwait } from "@/plugins/utils";
|
|
|
|
@ -33,7 +33,6 @@ const fromatPotoReq = (traceId, traceType, content) => {
|
|
|
|
|
message: res.getMessage(),
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class MsbIm {
|
|
|
|
|
defaultOption = {
|
|
|
|
|
ioKey: 'traceId',
|
|
|
|
@ -278,10 +277,10 @@ class MsbIm {
|
|
|
|
|
const { content } = result;
|
|
|
|
|
// let newData = [];
|
|
|
|
|
|
|
|
|
|
// content.sessionVOS.forEach((item) => {
|
|
|
|
|
// if (item.lastMessage) {
|
|
|
|
|
// item.lastMessage.payload = JSON.parse(item.lastMessage.payload || {});
|
|
|
|
|
// }
|
|
|
|
|
content.sessionVOS.forEach((item) => {
|
|
|
|
|
if (item.lastMessage) {
|
|
|
|
|
item.lastMessage.payload = JSON.parse(item.lastMessage.payload || {});
|
|
|
|
|
}
|
|
|
|
|
// let historyData = this.sessionData;
|
|
|
|
|
// let hisIndex = historyData.findIndex((i) => i.id === item.id);
|
|
|
|
|
// if (hisIndex >= 0) {
|
|
|
|
@ -292,7 +291,7 @@ class MsbIm {
|
|
|
|
|
// item.messageList = [];
|
|
|
|
|
// newData = [...newData, item];
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
});
|
|
|
|
|
this.setSessionData(content.sessionVOS);
|
|
|
|
|
return Promise.resolve(result);
|
|
|
|
|
}
|
|
|
|
|