fix(接口测试): 修复测试报告中节点过滤中错误的逻辑判断

--bug=1015270 --user=宋天阳 【接口测试】接口自动化-批量选择场景执行-集合报告结果中未执行显示错误
https://www.tapd.cn/55049933/s/1209463
This commit is contained in:
song-tianyang 2022-07-25 11:44:05 +08:00 committed by f2c-ci-robot[bot]
parent f25d0880d4
commit ff61886ea9
1 changed files with 9 additions and 9 deletions

View File

@ -58,7 +58,7 @@ export default {
},
methods: {
filterNode(value, data) {
if (!data.value && !data.children && data.children.length === 0) {
if (!data.value && (!data.children || data.children.length === 0)) {
return false;
}
if (!value) return true;