master
4 years ago
parent a76d74dda1
commit b05fdbf97e
  1. 2
      src/components/page/Login.vue
  2. 2
      src/components/page/PersonalCenter.vue

@ -100,7 +100,7 @@ export default {
// this.$post(this.api.updateLogInNumber,{userId: data.userId}).then(res => {}).catch(res => {}); // this.$post(this.api.updateLogInNumber,{userId: data.userId}).then(res => {}).catch(res => {});
res.message.listValue && this.$config.dynamicRoute && addRoutes(res.message.listValue) res.message.listValue && this.$config.dynamicRoute && addRoutes(res.message.listValue)
this.$message.success('登录成功'); this.$message.success('登录成功');
sessionStorage.setItem('kd_server_username', this.param.username); sessionStorage.setItem('kd_server_username', this.activeName == '0' ? this.param.username : this.phoneParam.userphone);
res.message.retvalue.userAvatars && this.$store.commit("userPhoto", { avatar : res.message.retvalue.userAvatars}) res.message.retvalue.userAvatars && this.$store.commit("userPhoto", { avatar : res.message.retvalue.userAvatars})
this.$store.commit("userLoginData", { userLogin_id : data.userId,userRole_id: data.roleId,schoolId: data.schoolId,token: data.token,userName: data.userName}); this.$store.commit("userLoginData", { userLogin_id : data.userId,userRole_id: data.roleId,schoolId: data.schoolId,token: data.token,userName: data.userName});

@ -1048,7 +1048,7 @@ input:focus {
margin-top: 10px; margin-top: 10px;
width: 80px; width: 80px;
height: 80px; height: 80px;
background: url('../../assets/img/img.jpg'); // background: url('../../assets/img/img.jpg');
border-radius: 50%; border-radius: 50%;
.head { .head {

Loading…
Cancel
Save