From 56d02ee627252e7e2bea03947efb60daefb45875 Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Wed, 15 Mar 2023 15:18:48 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=94=A8=E4=BE=8B=E8=AF=84=E5=AE=A1=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E9=A1=B9=E7=9B=AE=E4=B8=8B=E6=95=B0=E6=8D=AE=E4=BB=8D?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E5=85=B6=E5=AE=83=E9=A1=B9=E7=9B=AE=E4=B8=8B?= =?UTF-8?q?=E7=94=A8=E4=BE=8B=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1024438 --user=赵勇 【测试跟踪】用例评审-关联用例-切换项目关联成功后再次关联-默认项目下数据仍显示其它项目下用例 https://www.tapd.cn/55049933/s/1350534 Signed-off-by: fit2-zhao --- .../view/components/TestReviewRelevance.vue | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) 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;