新增临时角色页面
This commit is contained in:
@@ -193,7 +193,7 @@ export default {
|
||||
this.currentContact = response.data;
|
||||
this.contactUser = response.data.user;
|
||||
this.msgList = response.data.messages;
|
||||
console.log(this.msgList);
|
||||
|
||||
}
|
||||
this.msgListLoading = false;
|
||||
this.fleshScroll();
|
||||
@@ -243,12 +243,9 @@ export default {
|
||||
this.msgList.push(message);
|
||||
this.fleshLastMsg();
|
||||
this.fleshScroll();
|
||||
|
||||
|
||||
}
|
||||
},
|
||||
fleshLastMsg() {
|
||||
console.log(this.contactList)
|
||||
const index = this.contactList.findIndex(e => e.id === this.currentContact.id);
|
||||
this.contactList[index].endMsg = this.msgList[this.msgList.length - 1].content;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user