0👍
Firstly, you should use a computed property instead of a method for getImage()
.
And to solve the other problem, you could add require(YOUR_IMAGE_PATH)
when you call your specific image or put it inside /static/your_image.png
instead of @/assets/images/cards/1.png
.
Source:stackexchange.com