|
|
@ -28,13 +28,16 @@ export default { |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
getUserInfo(){ |
|
|
|
getUserInfo(){ |
|
|
|
this.$get(this.api.queryUserInfoDetails).then(res => { |
|
|
|
this.$get(this.api.queryUserInfoDetails).then(res => { |
|
|
|
|
|
|
|
console.log(res,'头像处理'); |
|
|
|
let userInfo = res.result.hrUserInfo |
|
|
|
let userInfo = res.result.hrUserInfo |
|
|
|
if(userInfo.userAvatars) this.$store.commit('userAvatar',{avatar: userInfo.userAvatars}) |
|
|
|
if(userInfo.userAvatars) this.$store.commit('userAvatar',{avatar: userInfo.userAvatars}) |
|
|
|
this.userName = userInfo.userName |
|
|
|
this.userName = userInfo.userName |
|
|
|
}).catch(err => {}) |
|
|
|
}).catch(err => {}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
toPerson(){ |
|
|
|
toPerson(){ |
|
|
|
this.$router.push('/person') |
|
|
|
if(this.$route.path.split('/').pop()!=='person'){ |
|
|
|
|
|
|
|
this.$router.push('/person') |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
loginout() { |
|
|
|
loginout() { |
|
|
|
localStorage.removeItem('ms_username'); |
|
|
|
localStorage.removeItem('ms_username'); |
|
|
|