diff --git a/src/renderer/src/views/profile/userAvatar.vue b/src/renderer/src/views/profile/userAvatar.vue index e179135..7880aff 100644 --- a/src/renderer/src/views/profile/userAvatar.vue +++ b/src/renderer/src/views/profile/userAvatar.vue @@ -69,7 +69,7 @@ function uploadImg(data) { /** 关闭窗口 */ function closeDialog() { - options.img = userStore.user.avatar + options.img = userStore.user.avatar ==='/img/avatar-default.jpg' ? defaultUserImg : dev_api.value + userStore.user.avatar options.visible = false } const cancle = () => {