From d1b1f06fc4843b17d669742645c396c16edab66a Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期六, 11 三月 2023 23:40:58 +0800 Subject: [PATCH] fix 修复 超管切换租户后 点击个人中心报错 --- ruoyi-ui/src/layout/components/Navbar.vue | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ruoyi-ui/src/layout/components/Navbar.vue b/ruoyi-ui/src/layout/components/Navbar.vue index 85fb1b5..c30cac1 100644 --- a/ruoyi-ui/src/layout/components/Navbar.vue +++ b/ruoyi-ui/src/layout/components/Navbar.vue @@ -80,10 +80,10 @@ data() { return { userId: this.$store.getters.userId, - tenantId: undefined, companyName: undefined, tenantList: [], - userList: [] + // 鏄惁鍒囨崲浜嗙鎴� + dynamic: false } }, components: { @@ -124,6 +124,7 @@ dynamicTenantEvent(tenantId) { if (this.companyName != null && this.companyName !== '') { dynamicTenant(tenantId).then(res => { + this.dynamic = true; this.$tab.closeAllPage() this.$router.push('/') }); @@ -131,6 +132,7 @@ }, dynamicClearEvent() { dynamicClear().then(res => { + this.dynamic = false; this.$tab.closeAllPage() this.$router.push('/') }); -- Gitblit v1.9.3