From ec07c38eb1893cdaef9fef633b6cc34bb13661de Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Wed, 7 Aug 2024 17:16:56 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B):=20?= =?UTF-8?q?=E8=AE=A1=E5=88=92Tab=E9=A1=B5=E7=A9=BA=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=97=B6=E6=8A=A5=E9=94=99=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1044837 --user=宋昌昌 【测试用例】用例详情-用例未关联计划-点击测试计划标签报错 https://www.tapd.cn/55049933/s/1559719 --- .../components/tabContent/tabTestPlan.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabTestPlan.vue b/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabTestPlan.vue index 1b3e7e6b6c..e58a869252 100644 --- a/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabTestPlan.vue +++ b/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabTestPlan.vue @@ -215,7 +215,9 @@ (val) => { if (val) { const selectedPlanIds: (string | undefined)[] = propsRes.value.data.map((e) => e.testPlanId) || []; - getStatistics(selectedPlanIds); + if (selectedPlanIds && selectedPlanIds.length > 0) { + getStatistics(selectedPlanIds); + } } }, {