From fae7525f2e8b3045257f4d7e2f63f698e7ef1b99 Mon Sep 17 00:00:00 2001 From: song-tianyang Date: Fri, 27 May 2022 17:20:16 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9C=BA=E6=99=AF=E6=AD=A5=E9=AA=A4=E4=B8=AD?= =?UTF-8?q?=E5=90=AB=E6=9C=89302=E5=86=85=E5=AE=B9=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=97=B6=E6=97=A0=E6=B3=95=E8=BF=9C=E7=A8=8B=E5=BC=82=E6=AD=A5?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E6=AD=A5=E9=AA=A4=E5=86=85=E5=AE=B9=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复场景步骤中含有302内容数据时无法远程异步加载步骤内容的问题 --- .../automation/report/components/RequestResult.vue | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) 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 151df4c07c..7b1ba00b6f 100644 --- a/frontend/src/business/components/api/automation/report/components/RequestResult.vue +++ b/frontend/src/business/components/api/automation/report/components/RequestResult.vue @@ -260,20 +260,15 @@ export default { element.parentNode.removeChild(element); }, 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() {