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