feat: oauth登录(页面 不包含逻辑)

This commit is contained in:
dap
2024-08-09 09:00:07 +08:00
parent bc46c65c7f
commit 1589292bbb
4 changed files with 42 additions and 11 deletions

View File

@@ -69,6 +69,10 @@ const emit = defineEmits<{
* 验证码点击
*/
captchaClick: [];
/**
* 第三方登录 platfrom 对应平台的string
*/
oauthLogin: [plateform: string];
submit: LoginEmits['submit'];
}>();
@@ -269,7 +273,10 @@ defineExpose({ resetCaptcha });
</div>
<!-- 第三方登录 -->
<ThirdPartyLogin v-if="showThirdPartyLogin" />
<ThirdPartyLogin
v-if="showThirdPartyLogin"
@oauth-login="(e) => emit('oauthLogin', e)"
/>
<div v-if="showRegister" class="text-center text-sm">
{{ $t('authentication.accountTip') }}