chore: oauth登录页开关
This commit is contained in:
parent
40bb93afcd
commit
ab988cf82e
@ -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>
|
||||
|
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user