diff --git a/frontend/src/business/components/api/automation/report/components/RequestResult.vue b/frontend/src/business/components/api/automation/report/components/RequestResult.vue index 64323e2283..d908987b9a 100644 --- a/frontend/src/business/components/api/automation/report/components/RequestResult.vue +++ b/frontend/src/business/components/api/automation/report/components/RequestResult.vue @@ -234,20 +234,15 @@ export default { }, methods: { loadRequestInfoExpand() { - if( !this.request.responseResult || (!this.request.responseResult.body && this.request.responseResult.body === null)){ + if (!this.request.responseResult || this.request.responseResult.body === null || this.request.responseResult.body === undefined) { this.$get("/api/scenario/report/selectReportContent/" + this.stepId, response => { - let requestResult = response.data; - if (requestResult) { - this.requestInfo = requestResult; - } + this.requestInfo = response.data; this.$nextTick(() => { this.requestInfo.loading = false; }); }); - }else { - if (this.request.responseResult && (this.request.responseResult.body || this.request.responseResult.body === '')) { - this.requestInfo = this.request; - } + } else { + this.requestInfo = this.request; } }, active() {