init runtime.public ;; cleared up misc errors

This commit is contained in:
wommy 2024-09-24 02:59:35 -04:00
parent 2baf50da12
commit e77609ed57
10 changed files with 17 additions and 18 deletions

View file

@ -55,8 +55,7 @@ export default {
return this._author.updatedAt
},
imgSrc() {
if (!this.imagePath) return null
return `${this.$config.routerBasePath}/api/authors/${this.authorId}/image?token=${this.userToken}&ts=${this.updatedAt}`
return this.imagePath ? `${this.$config.public.routerBasePath}/api/authors/${this.authorId}/image?token=${this.userToken}&ts=${this.updatedAt}` : null
}
},
methods: {