From 11a385f88c19aeace669e2f9ea1ee174be3822b9 Mon Sep 17 00:00:00 2001 From: jianxing Date: Tue, 25 Jul 2023 10:13:42 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92=E5=85=B3=E8=81=94=E5=9C=BA?= =?UTF-8?q?=E6=99=AF=E7=94=A8=E4=BE=8B=E8=B7=A8=E9=A1=B5=E5=8B=BE=E9=80=89?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E9=80=89=E6=8B=A9=E7=8E=AF=E5=A2=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1028098 --user=陈建星 【测试跟踪】测试计划-接口测试用例-场景用例-关联测试用例-运行环境显示错误 https://www.tapd.cn/55049933/s/1396759 --- .../view/comonents/api/RelevanceScenarioList.vue | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/test-track/frontend/src/business/plan/view/comonents/api/RelevanceScenarioList.vue b/test-track/frontend/src/business/plan/view/comonents/api/RelevanceScenarioList.vue index 98827cc3de..8c6e6bd51e 100644 --- a/test-track/frontend/src/business/plan/view/comonents/api/RelevanceScenarioList.vue +++ b/test-track/frontend/src/business/plan/view/comonents/api/RelevanceScenarioList.vue @@ -278,13 +278,15 @@ export default { }, search(data) { this.pageRefresh = data === "page"; - this.projectEnvMap.clear(); - this.projectIds.clear(); + if (!this.pageRefresh) { + this.projectEnvMap.clear(); + this.projectIds.clear(); + this.selectRows = new Set(); + } if (!this.projectId) { return; } this.getProject(this.projectId); - this.selectRows = new Set(); this.loading = true; if (this.condition.filters) { this.condition.filters.status = ["Prepare", "Underway", "Completed"]; @@ -316,7 +318,9 @@ export default { item.tags = JSON.parse(item.tags); } }); - this.clear(); + if (!this.pageRefresh) { + this.clear(); + } }); }, clear() {