fix(core): 统一电话号码字段名称从 phonenumber 改为 phone

This commit is contained in:
dubai
2026-01-11 14:06:04 +08:00
parent d12769dd29
commit 1d78fec144
12 changed files with 27 additions and 27 deletions

View File

@@ -48,7 +48,7 @@ const props = withDefaults(defineProps<Props>(), {
});
const emit = defineEmits<{
submit: [{ code: string; phoneNumber: string; tenantId: string }];
submit: [{ code: string; phone: string; tenantId: string }];
}>();
const router = useRouter();
@@ -71,7 +71,7 @@ async function handleSubmit() {
emit('submit', {
tenantId: values?.tenantId,
code: values?.code,
phoneNumber: values?.phoneNumber,
phone: values?.phone,
});
}
}

View File

@@ -91,7 +91,7 @@ interface LoginAndRegisterParams {
interface LoginCodeParams {
tenantId: string;
code: string;
phoneNumber: string;
phone: string;
}
interface LoginEmits {