diff --git a/src/bk-login/pages/src/views/home.vue b/src/bk-login/pages/src/views/home.vue index 13b8ec10e..cc447e1e8 100644 --- a/src/bk-login/pages/src/views/home.vue +++ b/src/bk-login/pages/src/views/home.vue @@ -185,7 +185,7 @@ const idps: Ref = ref([]); const activeIdp: Ref = ref(); // 确认登录租户 -const confirmTenant = async () => { +const confirmTenant = () => { if (trust.value) { localStorage.setItem('tenantId', tenantId.value); if (!tenantIdList.value.includes(tenantId.value)) { @@ -267,7 +267,7 @@ onBeforeMount(() => { hasStorage.value = true; tenant.value = res.only_enabled_auth_tenant; tenantId.value = res.only_enabled_auth_tenant.id; - signInAndFetchIdp(); + confirmTenant(); } else if (res.tenant_visible) { // 如果租户可见,改为选择租户 getAllTenantList().then((res) => { allTenantList.value = res;