优化一下评价任务管理dva更新数据逻辑

This commit is contained in:
linxd
2025-07-15 13:58:21 +08:00
parent b7014d9cc4
commit 37030abc0f
2 changed files with 4 additions and 3 deletions

View File

@ -246,8 +246,9 @@ const SupplierTaskModel: SupplierTaskModelType = {
const userId = newUser.id || newUser.userId;
const existing = existingUserMap.get(userId);
// 这里优化一下 如果newUser.indicatorIds为空 则取existing?.indicatorIds 否则取newUser.indicatorIds
const indicatorIds =
newUser.indicatorIds && newUser.indicatorIds.length > 0
newUser.indicatorIds
? newUser.indicatorIds
: existing?.indicatorIds || [];