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 });
diff --git a/packages/effects/common-ui/src/ui/authentication/types.ts b/packages/effects/common-ui/src/ui/authentication/types.ts
index 29446261..0e4288f0 100644
--- a/packages/effects/common-ui/src/ui/authentication/types.ts
+++ b/packages/effects/common-ui/src/ui/authentication/types.ts
@@ -89,6 +89,7 @@ interface LoginAndRegisterParams {
}
interface LoginCodeParams {
+ tenantId: string;
code: string;
phoneNumber: string;
}