Answer the question
In order to leave comments, you need to log in
How to make :src="user.photo" work?
Good afternoon.
In vuetify, there is a v-img component, if you write src="../assets/0.jpg", then everything works, if :src="user.photo", then no, although the value is the same. Tell me, pliz, how to get around the problem? Thanks in advance.
Answer the question
In order to leave comments, you need to log in
although the meaning is the same
I'm just learning)))
in the same steppe as Sergey Mukhin It's
one thing a static file
1.
Image: '/static/images/logo.png'
<img :src="Image">
"pure" static Image: require('/assets/images/logo.png')
<img :src="Image">
"computed", but still static. dev and build will collect the pictures in one place and add a unique hash to the name. Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question