diff --git a/src/views/user/Setting.vue b/src/views/user/Setting.vue index e51d032d..ccc4f2d7 100644 --- a/src/views/user/Setting.vue +++ b/src/views/user/Setting.vue @@ -255,7 +255,7 @@ this.avatarUrl = this.avatar; } console.log("sss "+this.userInfo.showHome); - this.hideHome = this.userInfo.showHome; + this.hideHome = !this.userInfo.showHome; this.load(); this.getInfo(); this.getSysTypeTree().then(rs => { @@ -270,6 +270,7 @@ if(res.status == 200) { this.userInfo.showHome = !this.hideHome; this.$message.success('修改成功'); + this.$store.dispatch('InitData'); } }) },