diff --git a/client/components/covers/BookCover.vue b/client/components/covers/BookCover.vue index 0d421955..93a76f14 100644 --- a/client/components/covers/BookCover.vue +++ b/client/components/covers/BookCover.vue @@ -94,7 +94,8 @@ export default { return this.author }, placeholderUrl() { - return `${this.$config.routerBasePath}/book_placeholder.jpg` + const config = this.$config || this.$nuxt.$config + return `${config.routerBasePath}/book_placeholder.jpg` }, fullCoverUrl() { if (!this.libraryItem) return null