fix(web): user memory detail

This commit is contained in:
zhaoying
2025-12-24 15:45:11 +08:00
parent d1b51b9653
commit 34dde34e61
4 changed files with 23 additions and 19 deletions

View File

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