fix(core): 统一电话号码字段名称从 phonenumber 改为 phone
This commit is contained in:
@@ -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,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -91,7 +91,7 @@ interface LoginAndRegisterParams {
|
||||
interface LoginCodeParams {
|
||||
tenantId: string;
|
||||
code: string;
|
||||
phoneNumber: string;
|
||||
phone: string;
|
||||
}
|
||||
|
||||
interface LoginEmits {
|
||||
|
||||
Reference in New Issue
Block a user