fix(接口测试): 修复接口测试报告步骤状态检索bug

This commit is contained in:
xinxin.wu 2024-10-23 11:54:14 +08:00 committed by Craftsman
parent 6293dd63fa
commit 465752d035
1 changed files with 4 additions and 2 deletions

View File

@ -164,12 +164,14 @@
function searchStep() {
const splitLevel = props.keyWords.split('-');
const stepTypeStatus = splitLevel[1] || '';
const stepType = splitLevel[0] === 'CUSTOM_REQUEST' ? ['API', 'API_CASE', 'CUSTOM_REQUEST'] : splitLevel[0];
const stepType =
splitLevel[0] === 'CUSTOM_REQUEST'
? ['API', 'API_CASE', 'CUSTOM_REQUEST']
: ['API', 'API_CASE', 'CUSTOM_REQUEST', 'SCRIPT', 'API_SCENARIO'];
const nameSearch = innerKeyword.value?.toLowerCase(); // name
const search = (_data: ScenarioItemType[]) => {
const result: ScenarioItemType[] = [];
_data.forEach((item) => {
const isStepChildren = item.children && item?.children.length && showApiType.value.includes(item.stepType);