Commit d7294610 by YunaiV

fix:租户禁用后,还展示了“租户切换权限”的按钮

parent a5f17a9f
......@@ -44,7 +44,9 @@ const locale = computed(() => appStore.getLocale)
const message = computed(() => appStore.getMessage)
// 租户切换权限
const hasTenantVisitPermission = computed(() => checkPermi(['system:tenant:visit']))
const hasTenantVisitPermission = computed(
() => import.meta.env.VITE_APP_TENANT_ENABLE === 'true' && checkPermi(['system:tenant:visit'])
)
export default defineComponent({
name: 'ToolHeader',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment