Browse Source

fix(user): 移除登录后加载状态的冗余检查

登录成功后不再检查加载状态,直接根据用户信息是否完整进行页面跳转,简化逻辑
master
前端-胡立永 2 weeks ago
parent
commit
e069d65590
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      store/modules/user.js

+ 2
- 2
store/modules/user.js View File

@ -73,7 +73,7 @@ const user = {
uni.hideLoading(); uni.hideLoading();
success(res) success(res)
if(loading){
// if(loading){
if (!res.data.userInfo.userName || !res.data.userInfo.userImage || ! if (!res.data.userInfo.userName || !res.data.userInfo.userImage || !
res.data.userInfo.userTelephone) { res.data.userInfo.userTelephone) {
uni.navigateTo({ uni.navigateTo({
@ -82,7 +82,7 @@ const user = {
} else { } else {
uni.navigateBack(-1) uni.navigateBack(-1)
} }
}
// }
} }
}) })


Loading…
Cancel
Save