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"
:loading="authStore.loginLoading"
:show-register="false"
:show-third-party-login="true"
@submit="handleAccountLogin"
>
<!-- 可通过show-third-party-login控制是否显示第三方登录 -->
<template #third-party-login>
<OAuthLogin />
</template>

View File

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