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(); + } } );