mirror of
https://gitee.com/lijingbo-2021/open-anylink-web.git
synced 2025-12-30 11:02:25 +00:00
头像给默认值
This commit is contained in:
@@ -144,7 +144,7 @@ const handleAvatarError = () => {
|
||||
watch(
|
||||
() => userCardData.userInfo.avatarThumb,
|
||||
(newValue) => {
|
||||
showAvatar.value = newValue
|
||||
showAvatar.value = newValue || default_avatar
|
||||
}
|
||||
)
|
||||
</script>
|
||||
|
||||
@@ -37,7 +37,7 @@ const onClickAvatar = () => {
|
||||
router.push('/setting/personal')
|
||||
}
|
||||
|
||||
const showAvatar = ref(userData.user.avatarThumb)
|
||||
const showAvatar = ref(userData.user.avatarThumb || default_avatar)
|
||||
|
||||
const handleAvatarError = () => {
|
||||
showAvatar.value = default_avatar
|
||||
|
||||
Reference in New Issue
Block a user