chore: oauth登录
This commit is contained in:
parent
f6406d6321
commit
0c11427217
@ -12,12 +12,13 @@ import { tenantList, type TenantResp } from '#/api';
|
||||
import { captchaImage, type CaptchaResponse } from '#/api/core/captcha';
|
||||
import { useAuthStore } from '#/store';
|
||||
|
||||
import OAuthLogin from './oauth-login.vue';
|
||||
|
||||
defineOptions({ name: 'Login' });
|
||||
|
||||
const authStore = useAuthStore();
|
||||
|
||||
const loginFormRef =
|
||||
useTemplateRef<InstanceType<typeof AuthenticationLogin>>('loginFormRef');
|
||||
const loginFormRef = useTemplateRef('loginFormRef');
|
||||
|
||||
const captchaInfo = ref<CaptchaResponse>({
|
||||
captchaEnabled: false,
|
||||
@ -150,6 +151,11 @@ async function handleAccountLogin(values: LoginForm) {
|
||||
ref="loginFormRef"
|
||||
:form-schema="formSchema"
|
||||
:loading="authStore.loginLoading"
|
||||
:show-register="false"
|
||||
@submit="handleAccountLogin"
|
||||
/>
|
||||
>
|
||||
<template #third-party-login>
|
||||
<OAuthLogin />
|
||||
</template>
|
||||
</AuthenticationLogin>
|
||||
</template>
|
||||
|
Loading…
Reference in New Issue
Block a user