Skip to content

Commit

Permalink
Merge pull request #23 from TaleLin/dev
Browse files Browse the repository at this point in the history
fix(interface):修改头像返回格式
  • Loading branch information
pedro authored Aug 2, 2019
2 parents a2908d1 + 642f509 commit ace95c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export let UserInterface = {
comment: '头像url',
get() {
// @ts-ignore
return config.getItem('siteDomain') + 'assets/' + this.getDataValue('avatar');
return this.getDataValue('avatar') ? config.getItem('siteDomain') + 'assets/' + this.getDataValue('avatar') : null;
}

},
Expand Down

0 comments on commit ace95c8

Please sign in to comment.