Hi I am really new to vuejs. I try to import a picture then call this picture in the methods.
import image from '@/assets/svg/xxx.svg'
then in the data
data () {
return {
image: image
}
},
and try to use it
li.style.backgroundImage = "url('this.image')";
But the image is not showing, and image link show as following
http://127.0.0.1:8080/order/detail/29/this.image
I really not sure where i get wrong...Please help...
li.style.backgroundImage = "url('/static/assets/svg/xxx.svg')""url(this.image)"