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

15
App.vue
View File

@ -240,11 +240,22 @@ export default {
};
const storeState = (this.$store && this.$store.state) || {};
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) {
this.$store.commit("push_AiLiveAgentMsg", msg);
if (isActiveChat) {
this.$store.commit("push_AiLiveAgentMsg", msg);
}
} else {
this.$store.commit("push_Msg", msg);
if (isActiveChat) {
this.$store.commit("push_Msg", msg);
}
}
// / /