fix(测试计划): 修复测试计划选择table关联用例取消数量不正确

This commit is contained in:
xinxin.wu 2024-07-24 16:20:15 +08:00 committed by 刘瑞斌
parent e6fae5ddb0
commit 671364ab0a
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ export default function useModuleSelections<T>(
}
// 有排除的则从全部的里边排除掉排除的进行回显选择项
// 确保单独更新行选中或者取消能精确判断是否已经选中或排除
if (selectAllProps && selectAllProps.excludeIds.size) {
if (selectAllProps && selectAllProps.selectAll && selectAllProps.excludeIds.size) {
(moduleSelectedMap.value[item.moduleId] || []).forEach((id) => {
if (!selectAllProps.excludeIds.has(id)) {
allSelectIds.add(id);