From f44b4dca253a14562a706bccd7f1261e39c12886 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Wed, 17 May 2023 17:57:33 +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=EF=BC=8C=E7=AC=AC=E4=BA=8C=E6=AC=A1=E6=89=93=E5=BC=80?= =?UTF-8?q?=E5=90=8E=E6=B2=A1=E6=9C=89=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1026261 --user=陈建星 【测试跟踪】测试计划-第二次关联接口场景&UI测试用例-不显示数据 https://www.tapd.cn/55049933/s/1372463 --- .../view/comonents/api/TestCaseScenarioRelevance.vue | 10 ++++++---- .../view/comonents/ui/TestCaseUiScenarioRelevance.vue | 10 ++++++---- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/test-track/frontend/src/business/plan/view/comonents/api/TestCaseScenarioRelevance.vue b/test-track/frontend/src/business/plan/view/comonents/api/TestCaseScenarioRelevance.vue index a111e44639..31f6d3045c 100644 --- a/test-track/frontend/src/business/plan/view/comonents/api/TestCaseScenarioRelevance.vue +++ b/test-track/frontend/src/business/plan/view/comonents/api/TestCaseScenarioRelevance.vue @@ -77,10 +77,12 @@ export default { methods: { open() { this.$refs.baseRelevance.open(); - if (this.$refs.apiScenarioList) { - this.$refs.apiScenarioList.clear(); - this.$refs.apiScenarioList.search(); - } + this.$nextTick(() => { + if (this.$refs.apiScenarioList) { + this.$refs.apiScenarioList.clear(); + this.$refs.apiScenarioList.search(); + } + }); }, setProject(projectId) { this.projectId = projectId; diff --git a/test-track/frontend/src/business/plan/view/comonents/ui/TestCaseUiScenarioRelevance.vue b/test-track/frontend/src/business/plan/view/comonents/ui/TestCaseUiScenarioRelevance.vue index 8f7e4eda3b..ae04e953e7 100644 --- a/test-track/frontend/src/business/plan/view/comonents/ui/TestCaseUiScenarioRelevance.vue +++ b/test-track/frontend/src/business/plan/view/comonents/ui/TestCaseUiScenarioRelevance.vue @@ -78,10 +78,12 @@ export default { methods: { open() { this.$refs.baseRelevance.open(); - if (this.$refs.apiScenarioList) { - this.$refs.apiScenarioList.clear(); - this.$refs.apiScenarioList.search(); - } + this.$nextTick(() => { + if (this.$refs.apiScenarioList) { + this.$refs.apiScenarioList.clear(); + this.$refs.apiScenarioList.search(); + } + }); }, setProject(projectId) { this.projectId = projectId;