In Vue 3 this doesn't work... I tried also:
:style="{ backgroundImage: `url(${require('@/assets/imgs/' + project.img)})` }"
Still not working.
It seems like require doesn't work for Vue 3, that's why I tried without it, but then I see the background-image url path in the Inspector, but the image is not there.
Can somebody help with that? Thanks!
0 comments:
Post a Comment
Thanks