fix:性别统一
This commit is contained in:
@@ -328,6 +328,7 @@ const local: any = {
|
|||||||
birthDate: 'Birth Date',
|
birthDate: 'Birth Date',
|
||||||
birthDatePlaceholder: 'Please select birth date',
|
birthDatePlaceholder: 'Please select birth date',
|
||||||
birthDateRequired: 'Please select birth date',
|
birthDateRequired: 'Please select birth date',
|
||||||
|
genderRequired:'Please select gender',
|
||||||
usernameLengthLimit:"Username is too short",
|
usernameLengthLimit:"Username is too short",
|
||||||
usernameExists:"The username is already registered",
|
usernameExists:"The username is already registered",
|
||||||
usernameRequired:"The username cannot be empty",
|
usernameRequired:"The username cannot be empty",
|
||||||
|
|||||||
@@ -328,6 +328,7 @@ const local:any = {
|
|||||||
birthDate: '出生日期',
|
birthDate: '出生日期',
|
||||||
birthDatePlaceholder: '请选择出生日期',
|
birthDatePlaceholder: '请选择出生日期',
|
||||||
birthDateRequired: '请选择出生日期',
|
birthDateRequired: '请选择出生日期',
|
||||||
|
genderRequired:'请选择性别',
|
||||||
usernameLengthLimit:"用户名太短",
|
usernameLengthLimit:"用户名太短",
|
||||||
usernameExists:"用户名已经注册",
|
usernameExists:"用户名已经注册",
|
||||||
usernameRequired:"用户名不能为空",
|
usernameRequired:"用户名不能为空",
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ const doGetUserInfo = async (params: SearchModel) => {
|
|||||||
userId: user.userId,
|
userId: user.userId,
|
||||||
username: user.userName,
|
username: user.userName,
|
||||||
fullname: user.nickName,
|
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') : '-',
|
birthdate: user.birthDate ? dayjs(user.birthDate).format('YYYY-MM-DD') : '-',
|
||||||
age: calculateAge(user.createTime),
|
age: calculateAge(user.createTime),
|
||||||
email: user.email,
|
email: user.email,
|
||||||
|
|||||||
Reference in New Issue
Block a user