From e2bbf980ee43c0fdbb2c6b0493c2c04eb613bba4 Mon Sep 17 00:00:00 2001 From: daihh Date: Fri, 28 Oct 2022 16:25:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=AA=E4=BA=BA=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/user/Setting.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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'); } }) },