| | |
| | | <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"> |
| | |
| | | data() { |
| | | return { |
| | | userId: this.$store.getters.userId, |
| | | tenantId: undefined, |
| | | companyName: undefined, |
| | | tenantList: [] |
| | | tenantList: [], |
| | | // 是否切换了租户 |
| | | dynamic: false |
| | | } |
| | | }, |
| | | components: { |
| | |
| | | dynamicTenantEvent(tenantId) { |
| | | if (this.companyName != null && this.companyName !== '') { |
| | | dynamicTenant(tenantId).then(res => { |
| | | this.dynamic = true; |
| | | this.$tab.closeAllPage() |
| | | this.$router.push('/') |
| | | }); |
| | |
| | | }, |
| | | dynamicClearEvent() { |
| | | dynamicClear().then(res => { |
| | | this.dynamic = false; |
| | | this.$tab.closeAllPage() |
| | | this.$router.push('/') |
| | | }); |