If you have a question or an issue, please start a thread in our Github Discussions Forum. This forum is closed for new threads/ topics.
Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Hi, how can I use vars in assets path?
<img src="~assets/img.png" />
is ok but
<img :src="'~assets/img' + id + '.png'" />
doesn’t work… img src is ~assets/img5.png now
Have you tried <img :src="require('assets/img' + id + '.png')" /> ?
<img :src="require('assets/img' + id + '.png')" />
It works, thanks