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 |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/ruoyi-ui/src/layout/components/Navbar.vue b/ruoyi-ui/src/layout/components/Navbar.vue
index 072bf5a..c30cac1 100644
--- a/ruoyi-ui/src/layout/components/Navbar.vue
+++ b/ruoyi-ui/src/layout/components/Navbar.vue
@@ -80,9 +80,10 @@
   data() {
     return {
       userId: this.$store.getters.userId,
-      tenantId: undefined,
       companyName: undefined,
-      tenantList: []
+      tenantList: [],
+      // 鏄惁鍒囨崲浜嗙鎴�
+      dynamic: false
     }
   },
   components: {
@@ -123,6 +124,7 @@
     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 @@
     },
     dynamicClearEvent() {
       dynamicClear().then(res => {
+        this.dynamic = false;
         this.$tab.closeAllPage()
         this.$router.push('/')
       });

--
Gitblit v1.9.3