From d1b1f06fc4843b17d669742645c396c16edab66a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90Li?= <15040126243@163.com> Date: Sat, 11 Mar 2023 23:40:58 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BF=AE=E5=A4=8D=20=E8=B6=85=E7=AE=A1?= =?UTF-8?q?=E5=88=87=E6=8D=A2=E7=A7=9F=E6=88=B7=E5=90=8E=20=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E4=B8=AA=E4=BA=BA=E4=B8=AD=E5=BF=83=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/layout/components/Navbar.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ruoyi-ui/src/layout/components/Navbar.vue b/ruoyi-ui/src/layout/components/Navbar.vue index 072bf5ae0..c30cac135 100644 --- a/ruoyi-ui/src/layout/components/Navbar.vue +++ b/ruoyi-ui/src/layout/components/Navbar.vue @@ -80,9 +80,10 @@ export default { data() { return { userId: this.$store.getters.userId, - tenantId: undefined, companyName: undefined, - tenantList: [] + tenantList: [], + // 是否切换了租户 + dynamic: false } }, components: { @@ -123,6 +124,7 @@ export default { dynamicTenantEvent(tenantId) { if (this.companyName != null && this.companyName !== '') { dynamicTenant(tenantId).then(res => { + this.dynamic = true; this.$tab.closeAllPage() this.$router.push('/') }); @@ -130,6 +132,7 @@ export default { }, dynamicClearEvent() { dynamicClear().then(res => { + this.dynamic = false; this.$tab.closeAllPage() this.$router.push('/') });