修改个人设置

This commit is contained in:
daihh
2022-10-28 16:25:36 +08:00
parent d4a0d2ba4a
commit e2bbf980ee

View File

@@ -255,7 +255,7 @@
this.avatarUrl = this.avatar; this.avatarUrl = this.avatar;
} }
console.log("sss "+this.userInfo.showHome); console.log("sss "+this.userInfo.showHome);
this.hideHome = this.userInfo.showHome; this.hideHome = !this.userInfo.showHome;
this.load(); this.load();
this.getInfo(); this.getInfo();
this.getSysTypeTree().then(rs => { this.getSysTypeTree().then(rs => {
@@ -270,6 +270,7 @@
if(res.status == 200) { if(res.status == 200) {
this.userInfo.showHome = !this.hideHome; this.userInfo.showHome = !this.hideHome;
this.$message.success('修改成功'); this.$message.success('修改成功');
this.$store.dispatch('InitData');
} }
}) })
}, },