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

后端 未结 6 925
死守一世寂寞
死守一世寂寞 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 03:04

    I have also used require in my components data property, which works:

     
    
    export default {
        data () {
            return {
                myImage: require('@/path/to/image')
            }
        }
    }
    

提交回复
热议问题