Answer the question
In order to leave comments, you need to log in
Dynamic attribute :src - the image does not appear. What's wrong?
Could this Vue CLI work? For if I directly set the path, then it has additional numbers in the name in devtools: /img/model_1.c5430f1b.jpg
the image appears. But the image is not dynamically displayed, although the path is written.
Does not work:
<img v-if="currentModel" :src= "img_path" max-width="300"/>
data: () => ({
img_path: '@/assets/img/model_1/img.jpg'
})
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question