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) } }) },