修改登录后看头像和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: {
getUserInfo(){
this.$get(this.api.queryUserInfoDetails).then(res => {
console.log(res,'头像处理');
let userInfo = res.result.hrUserInfo
if(userInfo.userAvatars) this.$store.commit('userAvatar',{avatar: userInfo.userAvatars})
this.userName = userInfo.userName
}).catch(err => {})
},
toPerson(){
this.$router.push('/person')
if(this.$route.path.split('/').pop()!=='person'){
this.$router.push('/person')
}
},
loginout() {
localStorage.removeItem('ms_username');

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

Loading…
Cancel
Save