fix(测试跟踪): 点击用例模块,模块用例数量更新有误
--bug=1025755 --user=陈建星 【测试跟踪】功能用例-左侧目录显示用例数量为0 https://www.tapd.cn/55049933/s/1366078
This commit is contained in:
parent
f6de7d3af2
commit
ab34898cdc
|
@ -323,10 +323,10 @@ export default {
|
|||
let children = item.children;
|
||||
if (children && children.length > 0) {
|
||||
this.doUpdateNodeCount(children, countMap);
|
||||
item.caseNum = countMap[item.id] + children.map(i => i.caseNum)
|
||||
item.caseNum = (countMap[item.id] ? countMap[item.id] : 0) + children.map(i => i.caseNum)
|
||||
.reduce((pre, curr) => pre + curr, 0);
|
||||
} else {
|
||||
item.caseNum = countMap[item.id];
|
||||
item.caseNum = countMap[item.id] ? countMap[item.id] : 0;
|
||||
}
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue