Fix android download complete crash removing unnecessary intent #128, fix author image path #131

This commit is contained in:
advplyr
2022-04-22 18:21:27 -05:00
parent 9d6a467517
commit b72aba36b8
2 changed files with 5 additions and 28 deletions
+5 -2
View File
@@ -54,13 +54,16 @@ export default {
updatedAt() {
return this._author.updatedAt
},
serverAddres() {
return this.$store.getters['user/getServerAddress']
},
imgSrc() {
if (!this.imagePath) return null
if (!this.imagePath || !this.serverAddres) return null
if (process.env.NODE_ENV !== 'production') {
// Testing
return `http://localhost:3333/api/authors/${this.authorId}/image?token=${this.userToken}&ts=${this.updatedAt}`
}
return `/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}`
}
},
methods: {