This commit is contained in:
yanran200730
2022-05-30 16:38:14 +08:00
parent bd2c72e81c
commit 4cdbb1959f

View File

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