From 04441d0bc42e273ea2dc0230255886a23fcf827c Mon Sep 17 00:00:00 2001 From: shiyu Date: Sun, 14 Sep 2025 13:20:45 +0800 Subject: [PATCH] feat: add username field to profile modal --- web/src/components/ProfileModal.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/src/components/ProfileModal.tsx b/web/src/components/ProfileModal.tsx index f38e0bb..f1298e3 100644 --- a/web/src/components/ProfileModal.tsx +++ b/web/src/components/ProfileModal.tsx @@ -18,6 +18,7 @@ const ProfileModal = memo(function ProfileModal({ open, onClose }: ProfileModalP useEffect(() => { if (open && user) { form.setFieldsValue({ + username: user.username || '', full_name: user.full_name || '', email: user.email || '', old_password: '', @@ -63,6 +64,9 @@ const ProfileModal = memo(function ProfileModal({ open, onClose }: ProfileModalP cancelText={t('Cancel')} >
+ + +