fix(聊天页面): 为mock消息对象添加id和interactMode字段
This commit is contained in:
parent
06ce602173
commit
ecc9d8bf87
|
|
@ -223,6 +223,7 @@ export default {
|
||||||
if (res.succeed) {
|
if (res.succeed) {
|
||||||
// 添加到消息列表
|
// 添加到消息列表
|
||||||
const msgUserData = {
|
const msgUserData = {
|
||||||
|
id: Math.random().toString(36).substring(2),
|
||||||
dialogueManagementId: this.vuex_msgUser.dialogueManagementId,
|
dialogueManagementId: this.vuex_msgUser.dialogueManagementId,
|
||||||
senderId: this.vuex_user.Id,
|
senderId: this.vuex_user.Id,
|
||||||
receiverId: this.vuex_msgUser.receiverId,
|
receiverId: this.vuex_msgUser.receiverId,
|
||||||
|
|
@ -230,6 +231,7 @@ export default {
|
||||||
message: this.messageValue,
|
message: this.messageValue,
|
||||||
messageType: 0,
|
messageType: 0,
|
||||||
filePath: "",
|
filePath: "",
|
||||||
|
interactMode: 0,
|
||||||
};
|
};
|
||||||
|
|
||||||
this.$store.commit("push_Msg", msgUserData);
|
this.$store.commit("push_Msg", msgUserData);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue