Skip to content

Commit d729461

Browse files
committed
fix:租户禁用后,还展示了“租户切换权限”的按钮
1 parent a5f17a9 commit d729461

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/layout/components/ToolHeader.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ const locale = computed(() => appStore.getLocale)
4444
const message = computed(() => appStore.getMessage)
4545
4646
// 租户切换权限
47-
const hasTenantVisitPermission = computed(() => checkPermi(['system:tenant:visit']))
47+
const hasTenantVisitPermission = computed(
48+
() => import.meta.env.VITE_APP_TENANT_ENABLE === 'true' && checkPermi(['system:tenant:visit'])
49+
)
4850
4951
export default defineComponent({
5052
name: 'ToolHeader',

0 commit comments

Comments
 (0)