Skip to content

Commit

Permalink
fix(interface):修改头像返回格式
Browse files Browse the repository at this point in the history
  • Loading branch information
lucienstar committed Aug 2, 2019
1 parent a2908d1 commit 642f509
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 642f509

Please sign in to comment.