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

View File

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