admin-vben/apps/web-antd/src/views/_essential/authentication/code-login.vue

26 lines
584 B
Vue

<script lang="ts" setup>
import type { LoginCodeParams } from '@vben/universal-ui';
import { ref } from 'vue';
import { AuthenticationCodeLogin } from '@vben/universal-ui';
defineOptions({ name: 'CodeLogin' });
const loading = ref(false);
/**
* 异步处理登录操作
* Asynchronously handle the login process
* @param values 登录表单数据
*/
async function handleLogin(values: LoginCodeParams) {
// eslint-disable-next-line no-console
console.log(values);
}
</script>
<template>
<AuthenticationCodeLogin :loading="loading" @submit="handleLogin" />
</template>