fix:租户禁用后,还展示了“租户切换权限”的按钮
This commit is contained in:
parent
a5f17a9f2a
commit
d72946100a
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user