Skip to content

Commit

Permalink
🐛 avoid multiple invalid requests
Browse files Browse the repository at this point in the history
  • Loading branch information
nicejade committed Mar 4, 2021
1 parent f6b5eec commit 668425b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/linksList/LinkItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export default {
return `**${this.$t('reviewStr')}**`
},
userAvatar() {
if (this.mUserInfo) {
if (this.mUserInfo && !this.isAbstract) {
let defaultAvatar = 'https://image.nicelinks.site/default-avatar.jpeg'
let userAvatar = this.mUserInfo.profile && this.mUserInfo.profile.avatar
return userAvatar ? `/api/avatar/${userAvatar}` : defaultAvatar
Expand All @@ -200,7 +200,9 @@ export default {
mounted() {
this.updatelinkScreenshot()
this.getUserInfoByUsername()
if (!this.isAbstract) {
this.getUserInfoByUsername()
}
mediumZoom('[data-zoomable]')
},
Expand Down

0 comments on commit 668425b

Please sign in to comment.