Answer the question
In order to leave comments, you need to log in
Why doesn't the loop in template wait for a promise?
There is a loop in the template:
<td v-for="type in rank">
<img v-for="hero in type" :src="load(hero)">
</td>
async load (name) {
const response = await axios.jsonp(`url/${name}`)
return response.url
}
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