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

如果用户已经有头像和昵称,则不要弹出上传头像和填写昵称的信息弹框。

Signed-off-by: heyho <heywsk@qq.com>
pull/93/head
heyho 2024-09-06 01:25:25 +00:00 committed by Gitee
parent 81cd02bbee
commit 9f5f4816d3
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 4 additions and 0 deletions

View File

@ -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');