From 9f5f4816d321c7c7323018b91b1c2b7ae244ee87 Mon Sep 17 00:00:00 2001 From: heyho Date: Fri, 6 Sep 2024 01:25:25 +0000 Subject: [PATCH] =?UTF-8?q?=E3=80=90BUG=E4=BF=AE=E5=A4=8D=E3=80=91?= =?UTF-8?q?=E6=8E=88=E6=9D=83=E7=99=BB=E5=BD=95=E6=88=90=E5=8A=9F=E5=90=8E?= =?UTF-8?q?=EF=BC=8C=E6=AF=8F=E6=AC=A1=E9=83=BD=E8=A6=81=E5=A1=AB=E6=98=B5?= =?UTF-8?q?=E7=A7=B0=E5=92=8C=E9=87=8D=E6=96=B0=E4=B8=8A=E4=BC=A0=E5=A4=B4?= =?UTF-8?q?=E5=83=8F=E3=80=82=20=E5=A6=82=E6=9E=9C=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E5=B7=B2=E7=BB=8F=E6=9C=89=E5=A4=B4=E5=83=8F=E5=92=8C=E6=98=B5?= =?UTF-8?q?=E7=A7=B0=EF=BC=8C=E5=88=99=E4=B8=8D=E8=A6=81=E5=BC=B9=E5=87=BA?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E5=A4=B4=E5=83=8F=E5=92=8C=E5=A1=AB=E5=86=99?= =?UTF-8?q?=E6=98=B5=E7=A7=B0=E7=9A=84=E4=BF=A1=E6=81=AF=E5=BC=B9=E6=A1=86?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: heyho --- sheep/components/s-auth-modal/s-auth-modal.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sheep/components/s-auth-modal/s-auth-modal.vue b/sheep/components/s-auth-modal/s-auth-modal.vue index cf6a6ff9..204f703f 100644 --- a/sheep/components/s-auth-modal/s-auth-modal.vue +++ b/sheep/components/s-auth-modal/s-auth-modal.vue @@ -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');