diff --git a/public/images/file/other.svg b/public/images/file/other.svg new file mode 100644 index 00000000..356c09f5 --- /dev/null +++ b/public/images/file/other.svg @@ -0,0 +1 @@ + diff --git a/resources/assets/js/components/UserAvatar.vue b/resources/assets/js/components/UserAvatar.vue index d87bf288..e709d6d1 100755 --- a/resources/assets/js/components/UserAvatar.vue +++ b/resources/assets/js/components/UserAvatar.vue @@ -67,6 +67,10 @@ type: String, default: '' }, + asynch: { + type: Boolean, + default: true + }, }, data() { return { @@ -172,6 +176,14 @@ this.user = this.userInfo; return; } + if (this.asynch) { + setTimeout(this.loadData); + } else { + this.loadData(); + } + }, + + loadData() { this.$store.dispatch("getUserBasic", { userid: this.userid, success: (user) => { diff --git a/resources/assets/js/pages/manage/messenger.vue b/resources/assets/js/pages/manage/messenger.vue index fcbc76e3..f965682b 100644 --- a/resources/assets/js/pages/manage/messenger.vue +++ b/resources/assets/js/pages/manage/messenger.vue @@ -19,7 +19,11 @@ {{$L(item.name)}}
- +