[Vuejs]-Vue JS – How to display image with dynamic URL without getting an error?

0👍

You should simply display this image when user.avatar is defined, e.g. :

<img v-if="user.avatar" :src="userAvatarURL" class="img-fluid avatar">

Leave a comment