修改登录后看头像和css部分样式问题

dev
e 3 years ago
parent 06b0fa3938
commit dcb356b584
  1. 5
      src/components/Header.vue
  2. 2
      src/views/Login.vue

@ -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');

@ -318,7 +318,7 @@ export default {
.ms-login { .ms-login {
position: relative; position: relative;
width: 1200px; width: 1200px;
height: 82%; height: calc(92vh - 60px);
margin: 60px auto 20px; margin: 60px auto 20px;
background-image: url(../assets/img/login-input.png); background-image: url(../assets/img/login-input.png);
box-shadow:0px 0px 79px 0px rgba(11,15,65,0.36); box-shadow:0px 0px 79px 0px rgba(11,15,65,0.36);

Loading…
Cancel
Save