mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-08-02 17:14:29 +02:00
Fix:LazyBookshelf default to square cover before server settings are loaded
This commit is contained in:
parent
0fd9463c7c
commit
1ee544b842
2 changed files with 6 additions and 10 deletions
|
@ -54,16 +54,16 @@ export default {
|
|||
updatedAt() {
|
||||
return this._author.updatedAt
|
||||
},
|
||||
serverAddres() {
|
||||
serverAddress() {
|
||||
return this.$store.getters['user/getServerAddress']
|
||||
},
|
||||
imgSrc() {
|
||||
if (!this.imagePath || !this.serverAddres) return null
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
if (!this.imagePath || !this.serverAddress) return null
|
||||
if (process.env.NODE_ENV !== 'production' && this.serverAddress.startsWith('http://192.168')) {
|
||||
// Testing
|
||||
return `http://localhost:3333/api/authors/${this.authorId}/image?token=${this.userToken}&ts=${this.updatedAt}`
|
||||
}
|
||||
return `${this.serverAddres}/api/authors/${this.authorId}/image?token=${this.userToken}&ts=${this.updatedAt}`
|
||||
return `${this.serverAddress}/api/authors/${this.authorId}/image?token=${this.userToken}&ts=${this.updatedAt}`
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue