Vuetify issue - why doesn't the v-img component display anything despite the image being passed in from a valid source?

后端 未结 6 929
死守一世寂寞
死守一世寂寞 2021-01-21 02:13

I wrote this code earlier in the summer before v-card-media was depreciated in favour of v-img. As far as I can see, I\'m using v-img correctly and passing in my source through

6条回答
  •  旧巷少年郎
    2021-01-21 02:54

    You have to use require for relative image paths, because Vue loader doesn't do that automatically for custom components.

    
    

    Explanation in Vuetify FAQ

提交回复
热议问题