diff --git a/api-test/frontend/src/business/automation/scenario/component/ApiComponent.vue b/api-test/frontend/src/business/automation/scenario/component/ApiComponent.vue index b2af374138..07bb149325 100644 --- a/api-test/frontend/src/business/automation/scenario/component/ApiComponent.vue +++ b/api-test/frontend/src/business/automation/scenario/component/ApiComponent.vue @@ -273,11 +273,11 @@ export default { this.request.projectId = getCurrentProjectID(); } this.request.customizeReq = this.isCustomizeReq; - if (this.request.customizeReq) { + if (this.request.customizeReq) { if (this.node.parent && this.node.parent.data && this.node.parent.data.length > 1) { this.request.projectId = getCurrentProjectID(); }else { - this.request.projectId = this.node.parent.data.projectId; + this.request.projectId = this.node.parent.data[0].projectId; } } if (this.currentScenario) { diff --git a/api-test/frontend/src/business/definition/ApiDefinition.vue b/api-test/frontend/src/business/definition/ApiDefinition.vue index 68af44f1eb..36c7df6cd0 100644 --- a/api-test/frontend/src/business/definition/ApiDefinition.vue +++ b/api-test/frontend/src/business/definition/ApiDefinition.vue @@ -1093,6 +1093,8 @@ export default { }, changeTab(active) { this.activeDom = active; + this.$EventBus.$emit('apiConditionBus', {}); + this.$refs.nodeTree.list(); }, }, };