diff --git a/pages/login/login.vue b/pages/login/login.vue index 3c3036b..5dd6af8 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -316,9 +316,7 @@ getInfo().then((res) => { let userJson = {} userJson.userId = res.data.user.id - let userInfo = res.data.user.info - userInfo.id = res.data.user.id - uni.setStorageSync('userInfo', userInfo) + uni.setStorageSync('userInfo', res.data.user) uni.setStorageSync('userId', res.data.user.id) uni.setStorageSync('role', res.data.roles) this.goselect() diff --git a/pages/my/my.vue b/pages/my/my.vue index bd0d163..87eb904 100644 --- a/pages/my/my.vue +++ b/pages/my/my.vue @@ -22,7 +22,7 @@ {{ userinfo.nickname || '用户昵称'}} - {{userinfo.phonenumber || '未填写手机号码'}} + {{userinfo.mobile || '未填写手机号码'}}