From 976e4cae5f5d2cff94081acbfa7f4eb78bfe0485 Mon Sep 17 00:00:00 2001 From: song-tianyang Date: Fri, 28 Jan 2022 14:09:55 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=9C=BA=E6=99=AF=E6=89=A7=E8=A1=8C=E8=BF=87?= =?UTF-8?q?=E7=A8=8B=E4=B8=AD=E6=8A=A5=E5=91=8A=E6=AD=A5=E9=AA=A4=E5=AE=9E?= =?UTF-8?q?=E6=97=B6=E6=98=BE=E7=A4=BA=E5=86=85=E5=AE=B9=EF=BC=8C=E9=92=88?= =?UTF-8?q?=E5=AF=B9=E8=AF=AF=E6=8A=A5=E5=86=85=E5=AE=B9=E5=8F=8A=E6=97=B6?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E5=87=BA=E6=9D=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1010028 --user=宋天阳 【接口测试】执行场景结果会先显示失败,最后才会变成正确的结果 https://www.tapd.cn/55049933/s/1100412 --- .../api/automation/report/components/RequestResult.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 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 0c7fae3c8b..9b1f187dbe 100644 --- a/frontend/src/business/components/api/automation/report/components/RequestResult.vue +++ b/frontend/src/business/components/api/automation/report/components/RequestResult.vue @@ -122,12 +122,16 @@ export default { }, } }, - watch:{ - request:{ + watch: { + request: { deep: true, handler(n) { - if(this.request.errorCode){ + if (this.request.errorCode) { this.errorCode = this.request.errorCode; + } else if (this.request.attachInfoMap && this.request.attachInfoMap.errorReportResult) { + if (this.request.attachInfoMap.errorReportResult !== "") { + this.errorCode = this.request.attachInfoMap.errorReportResult; + } } }, }