fix(接口测试): 报告过滤步骤请求调整

This commit is contained in:
xinxin.wu 2024-04-17 10:12:04 +08:00 committed by 刘瑞斌
parent 73425897df
commit 8af1f09a20
1 changed files with 5 additions and 1 deletions

View File

@ -109,11 +109,15 @@
(item.status && item.status === stepTypeStatus && stepTypeStatus !== 'scriptIdentifier') ||
(stepTypeStatus.includes('scriptIdentifier') && item.scriptIdentifier)
) {
let tempArray: ScenarioItemType[] = [];
if (!isStepChildren && item.children && item.children.length) {
tempArray = search(item.children);
}
const resItem = {
...item,
expanded: false,
stepChildren: isStepChildren ? cloneDeep(item.children) : [],
children: isStepChildren ? [] : item.children,
children: tempArray,
};
result.push(resItem);
} else if (item.children && splitLevel[0] === ScenarioStepType.CUSTOM_REQUEST) {