修改个人信息

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

View File

@@ -254,6 +254,8 @@
if(this.userInfo.avatar){ if(this.userInfo.avatar){
this.avatarUrl = this.avatar; this.avatarUrl = this.avatar;
} }
console.log("sss "+this.userInfo.showHome);
this.hideHome = this.userInfo.showHome;
this.load(); this.load();
this.getInfo(); this.getInfo();
this.getSysTypeTree().then(rs => { this.getSysTypeTree().then(rs => {
@@ -261,8 +263,15 @@
}); });
}, },
methods:{ methods:{
// 保存个人主页选项的编辑
saveHideHome(){ saveHideHome(){
//执行隐藏操作 //执行隐藏操作
userApi.updateShowHome(!this.hideHome).then(res=>{
if(res.status == 200) {
this.userInfo.showHome = !this.hideHome;
this.$message.success('修改成功');
}
})
}, },
checkAndSendFinish(){ checkAndSendFinish(){
//验证并发送完成事件 //验证并发送完成事件