优化一下评价任务管理dva更新数据逻辑
This commit is contained in:
@ -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 || [];
|
||||
|
||||
|
Reference in New Issue
Block a user