chore: oauth登录页开关

This commit is contained in:
dap 2024-11-19 08:29:12 +08:00
parent 40bb93afcd
commit ab988cf82e
2 changed files with 4 additions and 2 deletions

View File

@ -152,8 +152,10 @@ async function handleAccountLogin(values: LoginAndRegisterParams) {
:form-schema="formSchema" :form-schema="formSchema"
:loading="authStore.loginLoading" :loading="authStore.loginLoading"
:show-register="false" :show-register="false"
:show-third-party-login="true"
@submit="handleAccountLogin" @submit="handleAccountLogin"
> >
<!-- 可通过show-third-party-login控制是否显示第三方登录 -->
<template #third-party-login> <template #third-party-login>
<OAuthLogin /> <OAuthLogin />
</template> </template>

View File

@ -167,8 +167,8 @@ defineExpose({
</div> </div>
<!-- 第三方登录 --> <!-- 第三方登录 -->
<slot name="third-party-login"> <slot v-if="showThirdPartyLogin" name="third-party-login">
<ThirdPartyLogin v-if="showThirdPartyLogin" /> <ThirdPartyLogin />
</slot> </slot>
<slot name="to-register"> <slot name="to-register">