From cf8385f1dc68d9be8328906433158ccc53cf936a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?cls=5F=E5=AE=81=E6=B3=A2=E6=9C=AC=E6=9C=BA?= <908705107@qq.com> Date: Tue, 9 Jun 2026 18:19:59 +0800 Subject: [PATCH] Defer default third party login --- .../effects/common-ui/src/ui/authentication/login.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/web/packages/effects/common-ui/src/ui/authentication/login.vue b/web/packages/effects/common-ui/src/ui/authentication/login.vue index e56abb1..b32e0fa 100644 --- a/web/packages/effects/common-ui/src/ui/authentication/login.vue +++ b/web/packages/effects/common-ui/src/ui/authentication/login.vue @@ -5,7 +5,7 @@ import type { VbenFormSchema } from '@vben-core/form-ui'; import type { AuthenticationProps } from './types'; -import { computed, onMounted, reactive, ref } from 'vue'; +import { computed, defineAsyncComponent, onMounted, reactive, ref } from 'vue'; import { useRouter } from 'vue-router'; import { $t } from '@vben/locales'; @@ -14,7 +14,10 @@ import { useVbenForm } from '@vben-core/form-ui'; import { VbenButton, VbenCheckbox } from '@vben-core/shadcn-ui'; import Title from './auth-title.vue'; -import ThirdPartyLogin from './third-party-login.vue'; + +const ThirdPartyLogin = defineAsyncComponent( + () => import('./third-party-login.vue'), +); interface Props extends AuthenticationProps { formSchema?: VbenFormSchema[];