diff --git a/test-track/frontend/src/business/review/view/components/TestReviewRelevance.vue b/test-track/frontend/src/business/review/view/components/TestReviewRelevance.vue index feb0575335..bff928a6aa 100644 --- a/test-track/frontend/src/business/review/view/components/TestReviewRelevance.vue +++ b/test-track/frontend/src/business/review/view/components/TestReviewRelevance.vue @@ -286,17 +286,16 @@ export default { } else { this.condition.nodeIds = []; } + this.result.loading = true; initCondition(this.condition, this.condition.selectAll); - if (this.projectId) { - this.condition.projectId = this.projectId; - getTestCaseReviewsCasePage(this.currentPage, this.pageSize, this.condition) - .then((response) => { - let data = response.data; - this.total = data.itemCount; - this.testReviews = data.listObject; - }); - } - + this.condition.projectId = this.projectId || getCurrentProjectID(); + getTestCaseReviewsCasePage(this.currentPage, this.pageSize, this.condition) + .then((response) => { + let data = response.data; + this.total = data.itemCount; + this.testReviews = data.listObject; + this.result.loading = false; + }); }, setSelectCounts(data) { this.selectCounts = data;