From a45fa3e2ecb6d9f2ad6c1a5833b19c38aa502a91 Mon Sep 17 00:00:00 2001
From: 疯狂的狮子li <15040126243@163.com>
Date: 星期四, 23 三月 2023 14:02:37 +0800
Subject: [PATCH] update 全新文档 全面上线

---
 ruoyi-ui/src/layout/components/Navbar.vue |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/ruoyi-ui/src/layout/components/Navbar.vue b/ruoyi-ui/src/layout/components/Navbar.vue
index 85fb1b5..55844db 100644
--- a/ruoyi-ui/src/layout/components/Navbar.vue
+++ b/ruoyi-ui/src/layout/components/Navbar.vue
@@ -48,7 +48,7 @@
           <i class="el-icon-caret-bottom" />
         </div>
         <el-dropdown-menu slot="dropdown">
-          <router-link to="/user/profile">
+          <router-link to="/user/profile" v-if="!dynamic">
             <el-dropdown-item>涓汉涓績</el-dropdown-item>
           </router-link>
           <el-dropdown-item @click.native="setting = true">
@@ -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