mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-12 04:16:45 +08:00
修改个人信息
This commit is contained in:
@@ -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(){
|
||||||
//验证并发送完成事件
|
//验证并发送完成事件
|
||||||
|
|||||||
Reference in New Issue
Block a user