mirror of
https://gitee.com/myxzgzs/boyue-ui-admin-vue3
synced 2025-08-08 16:32:43 +08:00
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 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({
|
export default defineComponent({
|
||||||
name: 'ToolHeader',
|
name: 'ToolHeader',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user