|
|
@@ -31,8 +31,8 @@ export function useTargetTenantIdSetting() {
|
|
|
}
|
|
|
return localStorage.getItem(fullKey);
|
|
|
}
|
|
|
-
|
|
|
- const isSysTenant = computed(() => getValue() !== SYS_TENANT_ID.toString())
|
|
|
+ const sysTenantId = getValue() || userStore.info.tenantId?.toString();
|
|
|
+ const isSysTenant = sysTenantId !== SYS_TENANT_ID.toString();
|
|
|
|
|
|
return { setValue, getValue, isSysTenant };
|
|
|
}
|