We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8986696 commit 2ec0c24Copy full SHA for 2ec0c24
resources/js/Components/UserAvatar.vue
@@ -17,7 +17,7 @@ const props = defineProps({
17
})
18
19
const avatar = computed(
20
- () => props.avatar ?? `https://avatars.dicebear.com/api/${props.api}/${props.username.replace(/[^a-z0-9]+/i, '-')}.svg`
+ () => props.avatar ?? `https://api.dicebear.com/7.x/${props.api}/svg?seed=${props.username.replace(/[^a-z0-9]+/i, '-')}`
21
)
22
23
const username = computed(() => props.username)
0 commit comments