群头像修改时不同步的问题

This commit is contained in:
2022-02-16 16:29:52 +08:00
parent e0893a897a
commit fe9b79a18d
6 changed files with 37 additions and 32 deletions

View File

@@ -62,7 +62,7 @@
},
computed: {
latestMessage() {
if (this.messages.length > 1) {
if (this.messages.length) {
return this.messages[this.messages.length - 1]
} else {
return {