Skip to content

Commit

Permalink
Merge pull request #121 from TaleLin/vanoneang-patch-1
Browse files Browse the repository at this point in the history
Update user.js
  • Loading branch information
vanoneang authored May 31, 2021
2 parents 1141255 + 84252e1 commit beda28b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/model/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ class User extends Model {
username: this.username,
nickname: this.nickname,
email: this.email,
avatar: `${config.getItem('siteDomain', 'http://localhost')}/assets/${
avatar: this.avatar ? `${config.getItem('siteDomain', 'http://localhost')}/assets/${
this.avatar
}`
}` : ''
};
if (has(this, 'groups')) {
return { ...origin, groups: get(this, 'groups', []) };
Expand Down

0 comments on commit beda28b

Please sign in to comment.