diff --git a/frontend/src/business/components/api/automation/scenario/api/RelevanceScenarioList.vue b/frontend/src/business/components/api/automation/scenario/api/RelevanceScenarioList.vue index f3f73a0df1..6c03877972 100644 --- a/frontend/src/business/components/api/automation/scenario/api/RelevanceScenarioList.vue +++ b/frontend/src/business/components/api/automation/scenario/api/RelevanceScenarioList.vue @@ -174,7 +174,7 @@ export default { this.getVersionOptions(); }, methods: { - search() { + search(projectId) { this.selectRows = new Set(); this.condition.moduleIds = this.selectNodeIds; if (this.trashEnable) { @@ -182,6 +182,9 @@ export default { this.condition.moduleIds = []; } + if (projectId) { + this.projectId = projectId; + } if (this.projectId != null && typeof projectId === 'string') { this.condition.projectId = this.projectId; } else if (this.projectId != null) { diff --git a/frontend/src/business/components/api/automation/scenario/api/ScenarioRelevance.vue b/frontend/src/business/components/api/automation/scenario/api/ScenarioRelevance.vue index 621c93b170..d12cd5d553 100644 --- a/frontend/src/business/components/api/automation/scenario/api/ScenarioRelevance.vue +++ b/frontend/src/business/components/api/automation/scenario/api/ScenarioRelevance.vue @@ -3,6 +3,7 @@ :is-across-space="isAcrossSpace" :dialog-title="$t('api_test.automation.scenario_import')" @setProject="setProject" + @refreshNode="refresh" ref="baseRelevance">