feat: fix avatar problem

This commit is contained in:
tim
2025-07-07 01:46:11 +08:00
parent fe4ccf9efc
commit 87b2e9b19e
3 changed files with 12 additions and 11 deletions

View File

@@ -46,7 +46,7 @@ export default {
data() {
return {
dropdownVisible: false,
avatar: 'https://picsum.photos/40'
avatar: ''
}
},
computed: {
@@ -61,9 +61,7 @@ export default {
if (user && user.avatar) {
this.avatar = user.avatar
}
} else {
this.avatar = 'https://picsum.photos/40'
}
}
}
await updateAvatar()