fix(聊天页面): 为mock消息对象添加id和interactMode字段

This commit is contained in:
yangzhe 2025-12-09 16:36:04 +08:00
parent 06ce602173
commit ecc9d8bf87
1 changed files with 2 additions and 0 deletions

View File

@ -223,6 +223,7 @@ export default {
if (res.succeed) {
//
const msgUserData = {
id: Math.random().toString(36).substring(2),
dialogueManagementId: this.vuex_msgUser.dialogueManagementId,
senderId: this.vuex_user.Id,
receiverId: this.vuex_msgUser.receiverId,
@ -230,6 +231,7 @@ export default {
message: this.messageValue,
messageType: 0,
filePath: "",
interactMode: 0,
};
this.$store.commit("push_Msg", msgUserData);