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