聊天显示bug
This commit is contained in:
parent
61c37c4b59
commit
a95e977ca1
|
|
@ -1145,9 +1145,10 @@ Page({
|
|||
roomNum: this.data.channelId,
|
||||
msg: e.target.dataset.item || this.data.messageStr
|
||||
})
|
||||
const item = this.data.roomUserList.find(row => row.uid === this.data.user.uid)
|
||||
this.setData({
|
||||
chatList: [...this.data.chatList, {
|
||||
userName: this.data.user.userName,
|
||||
userName: item.userName,
|
||||
message: e.target.dataset.item || this.data.messageStr,
|
||||
timestamp: dayjs(+new Date()).format('HH:mm:ss'),
|
||||
me: true
|
||||
|
|
|
|||
Loading…
Reference in New Issue