We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a2908d1 + 642f509 commit ace95c8Copy full SHA for ace95c8
1 file changed
lib/interface.ts
@@ -49,7 +49,7 @@ export let UserInterface = {
49
comment: '头像url',
50
get() {
51
// @ts-ignore
52
- return config.getItem('siteDomain') + 'assets/' + this.getDataValue('avatar');
+ return this.getDataValue('avatar') ? config.getItem('siteDomain') + 'assets/' + this.getDataValue('avatar') : null;
53
}
54
55
},
0 commit comments