优化获取昵称修改状态的时机

This commit is contained in:
2025-12-03 15:44:41 +08:00
parent 7c1a1fafc1
commit b77b4b0536
9 changed files with 160 additions and 128 deletions

View File

@@ -819,7 +819,11 @@ const EditProfilePage: React.FC = () => {
}
initialValue={form_data[editing_field as keyof typeof form_data] || ""}
maxLength={editing_field === "nickname" ? 24 : 100}
invalidCharacters={editing_field === "nickname" ? "@<>/" : ""}
invalidCharacters={
editing_field === "nickname"
? /^[\u4e00-\u9fa5a-zA-Z0-9_\-\.\(\)\s]*$/
: null
}
onSave={handle_edit_modal_save}
onCancel={handle_edit_modal_cancel}
validationMessage={

View File

@@ -156,12 +156,11 @@
.popup_text {
font-family: DingTalk JinBuTi;
font-weight: 400;
font-weight: 600;
font-style: Regular;
font-size: 20px;
line-height: 16px;
margin: 20px 0;
font-style: italic;
.integer {
font-size: 36px;
}