From e069d655908ffa3bd27afe07bfe0c6939f5c5c53 Mon Sep 17 00:00:00 2001 From: hly <2783385703@qq.com> Date: Wed, 27 Aug 2025 10:33:56 +0800 Subject: [PATCH] =?UTF-8?q?fix(user):=20=E7=A7=BB=E9=99=A4=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E5=90=8E=E5=8A=A0=E8=BD=BD=E7=8A=B6=E6=80=81=E7=9A=84?= =?UTF-8?q?=E5=86=97=E4=BD=99=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 登录成功后不再检查加载状态,直接根据用户信息是否完整进行页面跳转,简化逻辑 --- store/modules/user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/store/modules/user.js b/store/modules/user.js index 5e76c1e..58e86cc 100644 --- a/store/modules/user.js +++ b/store/modules/user.js @@ -73,7 +73,7 @@ const user = { uni.hideLoading(); success(res) - if(loading){ + // if(loading){ if (!res.data.userInfo.userName || !res.data.userInfo.userImage || ! res.data.userInfo.userTelephone) { uni.navigateTo({ @@ -82,7 +82,7 @@ const user = { } else { uni.navigateBack(-1) } - } + // } } })