This commit is contained in:
yangzhe 2026-03-19 15:41:17 +08:00
commit a1c9ef82c7
1 changed files with 25 additions and 14 deletions

11
App.vue
View File

@ -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) {