<div> <img src="./img/no_photo.jpg> <!-- это работает --> <img :src="path"> <!-- это нет --> </div> ...
data() { return { path: './img/no_photo.jpg' } } I use vue-cli> webpack
If you look at the code in the browser, the path of the first image converts to src="/static/img/no_photo.4836f67.jpg" , and the path of the second image is src="./img/no_photo.jpg"
how to make it so that used webpack could convert paths from variables into working ones