去掉年龄的“岁”字

This commit is contained in:
Auora
2025-10-22 13:52:16 +08:00
parent 04f6e7e960
commit 8bc5d45976

View File

@@ -379,7 +379,7 @@ function handleBirthDateChange() {
age--;
}
form.value.age = age + '岁';
form.value.age = age;
}
}
@@ -390,7 +390,7 @@ function handleAgeInput() {
if (ageMatch) {
const age = parseInt(ageMatch[0]);
// 移除非数字字符,保留数字和可能的单位
form.value.age = age + '岁';
form.value.age = age ;
// 计算出生日期
const today = new Date();
@@ -429,7 +429,7 @@ watch(
age--;
}
form.value.age = age + '岁';
form.value.age = age ;
}
}
);