From 552658b84483d07b2d29c7484b5f1a3d62b22efd Mon Sep 17 00:00:00 2001 From: liaoxinyu Date: Wed, 9 Oct 2024 15:12:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=A4=B4=E5=83=8F=E6=8A=A5?= =?UTF-8?q?=E9=94=99=E5=90=8E=E4=B8=8D=E8=83=BD=E8=BF=9B=E8=A1=8C=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E5=85=B6=E4=BB=96=E8=8F=9C=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/main/main.vue | 3 ++- src/view/single-page/own/own.vue | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/main/main.vue b/src/components/main/main.vue index 712691a..ec1775e 100644 --- a/src/components/main/main.vue +++ b/src/components/main/main.vue @@ -76,7 +76,8 @@ export default { if (JSON.stringify(this.$store.state.user.userInfo) !== '{}') { let userData = {} if (this.$store.state.user.userInfo.hasOwnProperty('user_data') && !this.$store.state.user.userInfo.hasOwnProperty('userData')) { - userData = this.$store.state.user.userInfo.user_data + // userData = this.$store.state.user.userInfo.user_data + userData = this.$store.state.user.userInfo.userData } else { userData = this.$store.state.user.userInfo.userData } diff --git a/src/view/single-page/own/own.vue b/src/view/single-page/own/own.vue index d25b999..0eae4e3 100644 --- a/src/view/single-page/own/own.vue +++ b/src/view/single-page/own/own.vue @@ -179,7 +179,8 @@ export default { this.username = userInfo.username this.formItem.nickname = userInfo.nickname if (userInfo.hasOwnProperty('userData') && !userInfo.hasOwnProperty('user_data')) { - userInfo.userData = userInfo.user_data + // userInfo.userData = userInfo.user_data + userInfo.userData = userInfo.userData } this.formItem.head_img = userInfo.userData.head_img },