fix(接口测试): 修复接口测试报告步骤状态检索bug
This commit is contained in:
parent
6293dd63fa
commit
465752d035
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue