用户配置部门信息删除了多余的空格

main
wuyize 2023-01-09 12:03:12 +08:00
parent c88426f575
commit 8c56ab918e
1 changed files with 2 additions and 2 deletions

View File

@ -24,10 +24,10 @@ function UserConfig(props: any) {
const departmentToString = (staff: Staff) => {
if (staff.staffId === 'manager')
return '总经理'
let result = !staff.managingDepartment ? '' : departmentMap.get(staff.managingDepartment.departmentId) + '主管'
let result = !staff.managingDepartment ? '' : departmentMap.get(staff.managingDepartment.departmentId) + '主管\xa0\xa0'
if (staff.staffDepartments)
for (const department of staff.staffDepartments) {
result += '\xa0\xa0' + departmentMap.get(department.departmentId)
result += departmentMap.get(department.departmentId)+ '\xa0\xa0'
}
return result
}