I've bound a computed property to the src of an image tag in Vue.js. The code appears to correct, but does not work consistently which is baffling to me. Additionally, switching to the /about page and back to the main books page always properly displays the images.
Any information as to what could be causing this issue would be wonderful!
A hosted version of the app is available here: https://books.surge.sh/
The relevant code for the book-item component.
The code generating the book component and image src is as follows:
<template>
<article class="book-item">
<img :src="imgSrc" class="image">
<div class="meta">
<div class="name">{{ book.title }}</div>*
<div class="author">{{ book.author }}</div>
</div>
<div class="description">
<p v-html="book.description"></p>
</div>
</article>
</template>
<script>
export default {
props: ['book'],
computed: {
imgSrc() {
return `/static/img/${this.book.image}`;
}
}
};
</script>
Partially displayed book covers on initial load:

imgtodisplay: blockit already triggers and renders it.