!93 【BUG修复】授权登录成功后,每次都要填昵称和重新上传头像。

Merge pull request !93 from heyho/N/A
This commit is contained in:
芋道源码
2024-09-07 06:26:11 +00:00
committed by Gitee
@@ -152,7 +152,11 @@
}
const loginRes = await sheep.$platform.useProvider(provider).login();
if (loginRes) {
const userInfo = await sheep.$store('user').getInfo();
closeAuthModal();
// 如果用户已经有头像和昵称,不要每次登录都要重新上传头像。
if(userInfo.avatar && userInfo.nickname) return;
// 触发小程序授权信息弹框
// #ifdef MP-WEIXIN
showAuthModal('mpAuthorization');