From 77bbeb445421ca3903db64893a02d7fbb25aa562 Mon Sep 17 00:00:00 2001 From: nyoung <12190070+nyoungo@user.noreply.gitee.com> Date: Sat, 24 Aug 2024 11:48:37 +0800 Subject: [PATCH] 1 --- pages/login/login.vue | 4 +--- pages/my/my.vue | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) 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 || '未填写手机号码'}}