|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
* @Author: ch
|
|
|
|
|
* @Date: 2022-05-18 14:54:47
|
|
|
|
|
* @LastEditors: ch
|
|
|
|
|
* @LastEditTime: 2022-06-13 21:36:22
|
|
|
|
|
* @LastEditTime: 2022-06-13 21:42:08
|
|
|
|
|
* @Description: file content
|
|
|
|
|
*/
|
|
|
|
|
import { CreateUUID, FormatDate, ToAsyncAwait } from "@/common/utils";
|
|
|
|
@ -33,6 +33,7 @@ const fromatPotoReq = (traceId, traceType, content) => {
|
|
|
|
|
message: res.getMessage(),
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class MsbIm {
|
|
|
|
|
defaultOption = {
|
|
|
|
|
ioKey: 'traceId',
|
|
|
|
@ -185,6 +186,12 @@ class MsbIm {
|
|
|
|
|
// 不在当前会话窗口则向会话消息加1条未读
|
|
|
|
|
if (ctx.sessionId !== this.curSessionId) {
|
|
|
|
|
curHisData.unreadCount++;
|
|
|
|
|
} else {
|
|
|
|
|
this.setRead({
|
|
|
|
|
content: {
|
|
|
|
|
sessionId: this.curSessionId,
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
newData = historyData;
|
|
|
|
|
} else {
|
|
|
|
|