From 870dbfa38872e08846482d7e4e0e4ab2d2ecb689 Mon Sep 17 00:00:00 2001 From: teukkk Date: Thu, 1 Aug 2024 16:24:08 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92):=20?= =?UTF-8?q?=E8=84=91=E5=9B=BE=E6=89=A7=E8=A1=8C=E7=94=A8=E4=BE=8B-?= =?UTF-8?q?=E5=88=87=E6=8D=A2=E6=88=90=E8=A7=84=E5=88=92=E8=AF=95=E5=9B=BE?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../detail/featureCase/components/caseTable.vue | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/test-plan/testPlan/detail/featureCase/components/caseTable.vue b/frontend/src/views/test-plan/testPlan/detail/featureCase/components/caseTable.vue index 6eb6720174..7dca7840a2 100644 --- a/frontend/src/views/test-plan/testPlan/detail/featureCase/components/caseTable.vue +++ b/frontend/src/views/test-plan/testPlan/detail/featureCase/components/caseTable.vue @@ -465,6 +465,15 @@ } ); + watch( + () => props.treeType, + (val) => { + if (val === 'COLLECTION') { + showType.value = 'list'; + } + } + ); + async function loadCaseList(refreshTreeCount = true) { const tableParams = await getTableParams(false); setLoadListParams({ @@ -484,7 +493,9 @@ watch( () => props.activeModule, () => { - loadCaseList(); + if (showType.value === 'list') { + loadCaseList(); + } } );