Defer default third party login

This commit is contained in:
2026-06-09 18:19:59 +08:00
parent 3bcd3a6f4d
commit cf8385f1dc
@@ -5,7 +5,7 @@ import type { VbenFormSchema } from '@vben-core/form-ui';
import type { AuthenticationProps } from './types'; 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 { useRouter } from 'vue-router';
import { $t } from '@vben/locales'; 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 { VbenButton, VbenCheckbox } from '@vben-core/shadcn-ui';
import Title from './auth-title.vue'; 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 { interface Props extends AuthenticationProps {
formSchema?: VbenFormSchema[]; formSchema?: VbenFormSchema[];