fix: 移动端我的发起和抄送没有数据 (#1368)

Co-authored-by: bai.zixv <bai.zixv@foxmail.com>
Reviewed-on: daoyoucloud/tachybase#1368
Reviewed-by: sealday <zhanglin@daoyoucloud.com>
Co-authored-by: wjh <wwwjh0710@163.com>
Co-committed-by: wjh <wwwjh0710@163.com>
This commit is contained in:
wjh 2024-07-23 14:52:53 +08:00 committed by sealday
parent 16bb3ff31d
commit 27ce763165
2 changed files with 8 additions and 9 deletions

View File

@ -112,11 +112,11 @@ const changService = (api, setData, user, filter, t, setDefaultData, cm, compile
...item, ...item,
title: `${user.data.data.nickname}${categoryTitle}`, title: `${user.data.data.nickname}${categoryTitle}`,
categoryTitle: categoryTitle, categoryTitle: categoryTitle,
statusTitle: t(statusType.label), statusTitle: t(statusType?.label),
statusColor: statusType.color, statusColor: statusType?.color || 'default',
reason: summary || [], reason: summary || [],
priorityTitle: priorityType.label, priorityTitle: priorityType?.label,
priorityColor: priorityType.color, priorityColor: priorityType?.color,
}; };
}); });
result.sort((a, b) => { result.sort((a, b) => {
@ -125,7 +125,6 @@ const changService = (api, setData, user, filter, t, setDefaultData, cm, compile
setData(result); setData(result);
setDefaultData(result); setDefaultData(result);
}) })
.catch(() => { .catch(() => {
console.error; console.error;
}); });

View File

@ -243,11 +243,11 @@ export const changeWorkflowNoticeService = (api, t, cm, compile, input, setData,
...item, ...item,
title: `${nickName}${categoryTitle}`, title: `${nickName}${categoryTitle}`,
categoryTitle: categoryTitle, categoryTitle: categoryTitle,
statusTitle: t(statusType.label), statusTitle: t(statusType?.label),
statusColor: statusType.color, statusColor: statusType?.color || 'default',
reason: summary, reason: summary,
priorityTitle: priorityType.label, priorityTitle: priorityType?.label,
priorityColor: priorityType.color, priorityColor: priorityType?.color,
}; };
}); });