Merge branch 'main' of http://sl.vrgon.com:3000/JiXinHui/YingXingAI
This commit is contained in:
commit
a1c9ef82c7
11
App.vue
11
App.vue
|
|
@ -240,12 +240,23 @@ export default {
|
||||||
};
|
};
|
||||||
const storeState = (this.$store && this.$store.state) || {};
|
const storeState = (this.$store && this.$store.state) || {};
|
||||||
const isTransferChat = !!storeState.vuex_isTransferChat;
|
const isTransferChat = !!storeState.vuex_isTransferChat;
|
||||||
|
const activeDialogueId =
|
||||||
|
storeState.vuex_msgUser?.dialogueManagementId ||
|
||||||
|
storeState.vuex_msgUser?.friendId ||
|
||||||
|
storeState.vuex_msgUser?.id;
|
||||||
|
const isActiveChat =
|
||||||
|
activeDialogueId &&
|
||||||
|
String(activeDialogueId) === String(processData.dialogueManagementId);
|
||||||
|
|
||||||
if (isTransferChat) {
|
if (isTransferChat) {
|
||||||
|
if (isActiveChat) {
|
||||||
this.$store.commit("push_AiLiveAgentMsg", msg);
|
this.$store.commit("push_AiLiveAgentMsg", msg);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
|
if (isActiveChat) {
|
||||||
this.$store.commit("push_Msg", msg);
|
this.$store.commit("push_Msg", msg);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// 更新会话列表的未读数 / 文案 / 时间,保持实时展示
|
// 更新会话列表的未读数 / 文案 / 时间,保持实时展示
|
||||||
if (processData.dialogueManagementId) {
|
if (processData.dialogueManagementId) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue