diff --git a/test-track/frontend/src/business/case/components/public/PublicTestCaseList.vue b/test-track/frontend/src/business/case/components/public/PublicTestCaseList.vue index eb0497576e..16c3be97a2 100644 --- a/test-track/frontend/src/business/case/components/public/PublicTestCaseList.vue +++ b/test-track/frontend/src/business/case/components/public/PublicTestCaseList.vue @@ -137,6 +137,7 @@ { this.userFilter = data; }); + this.getVersionOptions(); // 切换tab之后版本查询 this.condition.versionId = this.currentVersion; @@ -513,6 +517,12 @@ export default { this.refresh(); }); }, + getVersionOptions() { + if (hasLicense()) { + getVersionFilters(getCurrentProjectID()) + .then(r => this.versionFilters = r.data); + } + }, } };