fix(web): update user profile

This commit is contained in:
zhaoying
2025-12-25 13:52:50 +08:00
parent e608d8f9d0
commit bfed5404b4
5 changed files with 8 additions and 8 deletions

View File

@@ -37,7 +37,7 @@ const EndUserProfile:FC = () => {
}
const formatItems = useCallback(() => {
if (!data) return []
return ['name', 'position', 'department', 'contact', 'phone', 'hire_date'].map(key => ({
return ['other_name', 'position', 'department', 'contact', 'phone', 'hire_date'].map(key => ({
key,
label: t(`userMemory.${key}`),
children: key === 'hire_date' && data[key] ? dayjs(data[key as keyof EndUser]).format('YYYY-MM-DD') : String(data[key as keyof EndUser] || ''),