From 8af1f09a20c17631764a54aa577686eaf6d3d8f0 Mon Sep 17 00:00:00 2001 From: "xinxin.wu" Date: Wed, 17 Apr 2024 10:12:04 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E6=8A=A5=E5=91=8A=E8=BF=87=E6=BB=A4=E6=AD=A5=E9=AA=A4=E8=AF=B7?= =?UTF-8?q?=E6=B1=82=E8=B0=83=E6=95=B4?= 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, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/api-test/report/component/tiledList.vue b/frontend/src/views/api-test/report/component/tiledList.vue index 66e5f2bf34..d18607291e 100644 --- a/frontend/src/views/api-test/report/component/tiledList.vue +++ b/frontend/src/views/api-test/report/component/tiledList.vue @@ -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) {