From 465752d0351e11d2728cf4f6cfd09889d5beacc5 Mon Sep 17 00:00:00 2001 From: "xinxin.wu" Date: Wed, 23 Oct 2024 11:54:14 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95=E6=8A=A5?= =?UTF-8?q?=E5=91=8A=E6=AD=A5=E9=AA=A4=E7=8A=B6=E6=80=81=E6=A3=80=E7=B4=A2?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/api-test/report/component/tiledList.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/api-test/report/component/tiledList.vue b/frontend/src/views/api-test/report/component/tiledList.vue index 9d345052c7..b22d1933aa 100644 --- a/frontend/src/views/api-test/report/component/tiledList.vue +++ b/frontend/src/views/api-test/report/component/tiledList.vue @@ -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);