From 3c71af064c375ba20f25f43c3104f4832e6b8233 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Fri, 1 Apr 2022 07:14:57 +0800 Subject: [PATCH] no message --- resources/assets/js/components/UserAvatar.vue | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/resources/assets/js/components/UserAvatar.vue b/resources/assets/js/components/UserAvatar.vue index 85b3eea66..8bb036ffb 100755 --- a/resources/assets/js/components/UserAvatar.vue +++ b/resources/assets/js/components/UserAvatar.vue @@ -16,7 +16,7 @@
- + {{nickname}} @@ -197,18 +197,18 @@ }, setUser(info) { - if (this.user && this.user.userimg != info.usering) { - this.user = null - this.$nextTick(() => { - this.user = info - }) - } else { - this.user = info + try { + if (this.user && this.user.userimg != info.userimg && this.$refs.avatar) { + this.$refs.avatar.$data.isImageExist = true; + } + } catch (e) { + // } + this.user = info; }, onError() { - return false + return true }, openDialog() {