2
0

fix:性别统一

This commit is contained in:
zhongzm
2025-02-26 16:58:06 +08:00
parent 8a15e933ac
commit 1c3bff4f6f
3 changed files with 3 additions and 1 deletions

View File

@@ -328,6 +328,7 @@ const local: any = {
birthDate: 'Birth Date',
birthDatePlaceholder: 'Please select birth date',
birthDateRequired: 'Please select birth date',
genderRequired:'Please select gender',
usernameLengthLimit:"Username is too short",
usernameExists:"The username is already registered",
usernameRequired:"The username cannot be empty",

View File

@@ -328,6 +328,7 @@ const local:any = {
birthDate: '出生日期',
birthDatePlaceholder: '请选择出生日期',
birthDateRequired: '请选择出生日期',
genderRequired:'请选择性别',
usernameLengthLimit:"用户名太短",
usernameExists:"用户名已经注册",
usernameRequired:"用户名不能为空",

View File

@@ -36,7 +36,7 @@ const doGetUserInfo = async (params: SearchModel) => {
userId: user.userId,
username: user.userName,
fullname: user.nickName,
sex: user.sex === '1' ? 'M' : 'F',
sex: user.sex === '0' ? 'M' : 'F',
birthdate: user.birthDate ? dayjs(user.birthDate).format('YYYY-MM-DD') : '-',
age: calculateAge(user.createTime),
email: user.email,