From 4cdbb1959f42d1787b1b1bdff6be68878bce9073 Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Mon, 30 May 2022 16:38:14 +0800 Subject: [PATCH] bug --- src/saas/AppCountryAlbum/components/Home.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/saas/AppCountryAlbum/components/Home.vue b/src/saas/AppCountryAlbum/components/Home.vue index bead66ef..5983c380 100644 --- a/src/saas/AppCountryAlbum/components/Home.vue +++ b/src/saas/AppCountryAlbum/components/Home.vue @@ -83,8 +83,7 @@ countPhotoNo: '', countPhotographer: '', list: [], - msgInfo: {}, - userInfo: {} + msgInfo: {} } }, computed: { ...mapState(['user']) }, @@ -118,7 +117,7 @@ getUserInfo () { this.$http.post('/api/user/info').then(res => { if (res.code === 0) { - this.userInfo = res.data + this.$store.commit('setUser', res.data) } }) },