修改个人信息

This commit is contained in:
weinan2087
2022-10-27 18:02:21 +08:00
parent 4720fe6753
commit 722c1f79f2

View File

@@ -10,7 +10,7 @@
<h6>修改头像</h6>
</div>
</div>
<!-- <el-form :model="form" label-position="right" label-width="80px"> -->
<div class="informationItem">
<div class="information-header">
@@ -254,6 +254,8 @@
if(this.userInfo.avatar){
this.avatarUrl = this.avatar;
}
console.log("sss "+this.userInfo.showHome);
this.hideHome = this.userInfo.showHome;
this.load();
this.getInfo();
this.getSysTypeTree().then(rs => {
@@ -261,8 +263,15 @@
});
},
methods:{
// 保存个人主页选项的编辑
saveHideHome(){
//执行隐藏操作
userApi.updateShowHome(!this.hideHome).then(res=>{
if(res.status == 200) {
this.userInfo.showHome = !this.hideHome;
this.$message.success('修改成功');
}
})
},
checkAndSendFinish(){
//验证并发送完成事件
@@ -439,7 +448,7 @@
color: #FFFFFF;
margin: 0px;
}
}
.avatar:hover .avatarhover{
display: block;