diff --git a/test-track/frontend/src/business/case/TestCase.vue b/test-track/frontend/src/business/case/TestCase.vue index 032bdca258..b387d67ad7 100644 --- a/test-track/frontend/src/business/case/TestCase.vue +++ b/test-track/frontend/src/business/case/TestCase.vue @@ -504,7 +504,8 @@ export default { this.$refs.trashNodeTree.list(); this.hasRefreshDefault = false; }, - refreshTreeByCaseFilter() { + refreshTreeByCaseFilter(currentVersion) { + this.condition.versionId = currentVersion || null; if (this.publicEnable) { this.$refs.publicNodeTree.list(); } else if (this.trashEnable) { diff --git a/test-track/frontend/src/business/case/components/TestCaseList.vue b/test-track/frontend/src/business/case/components/TestCaseList.vue index f51f1bbb10..1fe2f75881 100644 --- a/test-track/frontend/src/business/case/components/TestCaseList.vue +++ b/test-track/frontend/src/business/case/components/TestCaseList.vue @@ -826,6 +826,7 @@ export default { }, changeVersion(currentVersion) { this.currentVersion = currentVersion || null; + this.$emit('search',currentVersion); }, toggleAdvanceSearch() { this.$refs.advanceSearch.toggle();