mirror of
https://gitee.com/mafgwo/stackedit
synced 2024-11-16 03:32:40 +08:00
gitee头像显示问题bugfix
This commit is contained in:
parent
5789b2993f
commit
b94898960a
|
@ -5,7 +5,7 @@
|
|||
<div class="menu-entry__icon menu-entry__icon--image">
|
||||
<user-image :user-id="userId"></user-image>
|
||||
</div>
|
||||
<span>Signed in as <b>{{loginToken.name}}</b>.</span>
|
||||
<span>登录名为<b>{{loginToken.name}}</b>。</span>
|
||||
</div>
|
||||
<div class="menu-entry menu-entry--info flex flex--row flex--align-center" v-if="syncToken">
|
||||
<div class="menu-entry__icon menu-entry__icon--image">
|
||||
|
|
|
@ -44,6 +44,9 @@ userSvc.setInfoResolver('gitee', subPrefix, async (sub) => {
|
|||
},
|
||||
})).body;
|
||||
|
||||
if (user.avatar_url && user.avatar_url.endsWith('.png')) {
|
||||
user.avatar_url = `${user.avatar_url}!avatar60`;
|
||||
}
|
||||
return {
|
||||
id: `${subPrefix}:${user.login}`,
|
||||
name: user.login,
|
||||
|
|
Loading…
Reference in New Issue
Block a user