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;