diff --git a/src/components/menus/MainMenu.vue b/src/components/menus/MainMenu.vue index e7891b68..34fc013d 100644 --- a/src/components/menus/MainMenu.vue +++ b/src/components/menus/MainMenu.vue @@ -5,7 +5,7 @@
- Signed in as {{loginToken.name}}. + 登录名为{{loginToken.name}}
diff --git a/src/services/providers/helpers/giteeHelper.js b/src/services/providers/helpers/giteeHelper.js index 59b02227..78287d41 100644 --- a/src/services/providers/helpers/giteeHelper.js +++ b/src/services/providers/helpers/giteeHelper.js @@ -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,