From 6677d5cfa80055c54baf5b2dceb3b8267cbccba1 Mon Sep 17 00:00:00 2001 From: dap <15891557205@163.com> Date: Sun, 13 Oct 2024 10:45:17 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=AA=8C=E8=AF=81=E7=A0=81=E7=99=BB?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 + .../views/_core/authentication/code-login.vue | 116 ++++++++++++++---- .../src/ui/authentication/code-login.vue | 5 +- .../common-ui/src/ui/authentication/types.ts | 1 + 4 files changed, 101 insertions(+), 22 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 30a09d48..50d80b7f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ - 用户管理 新增从参数取默认密码 - 全局表格加上id 方便进行缓存列排序的操作 - 支持菜单名称i18n +- 登录页 验证码登录 **BUG FIXES** diff --git a/apps/web-antd/src/views/_core/authentication/code-login.vue b/apps/web-antd/src/views/_core/authentication/code-login.vue index b4ce1b76..9b13561e 100644 --- a/apps/web-antd/src/views/_core/authentication/code-login.vue +++ b/apps/web-antd/src/views/_core/authentication/code-login.vue @@ -1,17 +1,61 @@ diff --git a/packages/effects/common-ui/src/ui/authentication/code-login.vue b/packages/effects/common-ui/src/ui/authentication/code-login.vue index 4501c891..4f2855e5 100644 --- a/packages/effects/common-ui/src/ui/authentication/code-login.vue +++ b/packages/effects/common-ui/src/ui/authentication/code-login.vue @@ -54,7 +54,7 @@ const emit = defineEmits<{ const router = useRouter(); -const [Form, { validate }] = useVbenForm( +const [Form, { validate, setFieldValue }] = useVbenForm( reactive({ commonConfig: { hideLabel: true, @@ -70,6 +70,7 @@ async function handleSubmit() { if (valid) { emit('submit', { + tenantId: values?.tenantId, code: values?.code, phoneNumber: values?.phoneNumber, }); @@ -79,6 +80,8 @@ async function handleSubmit() { function goToLogin() { router.push(props.loginPath); } + +defineExpose({ setFieldValue });