mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-09 19:06:43 +08:00
修改个人信息
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user